Skip to content

Commit a3f3955

Browse files
committed
Checking multithreading deletes.
1 parent 0c4c625 commit a3f3955

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

awswrangler/s3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def delete_objects(
271271
else:
272272
cpus: int = _utils.ensure_cpu_count(use_threads=use_threads)
273273
with concurrent.futures.ThreadPoolExecutor(max_workers=cpus) as executor:
274-
executor.map(_delete_objects, repeat(bucket), chunks, repeat(client_s3))
274+
list(executor.map(_delete_objects, repeat(bucket), chunks, repeat(client_s3)))
275275

276276

277277
def _split_paths_by_bucket(paths: List[str]) -> Dict[str, List[str]]:

0 commit comments

Comments
 (0)