Browse Source

Set parallel uploads

master
Roelf Wichertjes 7 months ago
parent
commit
bd033a270d
Signed by: rewby GPG Key ID: 4C2B6D2972EE5423
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      main.py

+ 1
- 1
main.py View File

@@ -209,7 +209,7 @@ def single_impl(item_directory: pathlib.Path, ia_collection: str, ia_item_title:

def upload_file():
logging.info(f"Uploading file {rel_file}...")
client.fput_object(bucket_name=bucket_name, object_name=str(rel_file), file_path=file)
client.fput_object(bucket_name=bucket_name, object_name=str(rel_file), file_path=file, num_parallel_uploads=8)

retry_failures(upload_file, f"Failed to upload {rel_file}")



Loading…
Cancel
Save