Преглед изворни кода

Set parallel uploads

master
Roelf Wichertjes пре 8 месеци
родитељ
комит
bd033a270d
Signed by: rewby GPG Key ID: 4C2B6D2972EE5423
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      main.py

+ 1
- 1
main.py Прегледај датотеку

@@ -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…
Откажи
Сачувај