Skip to content

Commit 14fb633

Browse files
pjonssonalexgleith
authored andcommitted
inventory: do not create 1000 threads
Use the n_threads parameter instead of creating 1000 threads.
1 parent 367801c commit 14fb633

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/cloud/odc/aws/inventory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def list_inventory(
8686
schema = tuple(info["fileSchema"].split(", "))
8787

8888
if n_threads:
89-
with ThreadPoolExecutor(max_workers=1000) as executor:
89+
with ThreadPoolExecutor(max_workers=n_threads) as executor:
9090
tasks = [
9191
executor.submit(retrieve_manifest_files, key, s3, schema)
9292
for key in data_urls

0 commit comments

Comments
 (0)