Upload files to Deadline Cloud job attachments
The
upload_to_job_attachments
The script provides the following:
-
Recursive uploads of files or whole directories.
-
Multi-threaded transfers.
-
Automatic deduplication that skips files already in Amazon S3.
-
Retry logic with exponential backoff.
-
Two configuration modes: direct Amazon S3 specification or queue lookup.
Upload by specifying a queue:
python upload_to_job_attachments.py \ --farm-idfarm-1234567890abcdef\ --queue-idqueue-1234567890abcdef\ --paths/path/to/files/path/to/directory
Or upload directly to an Amazon S3 bucket and prefix:
python upload_to_job_attachments.py \ --s3-bucketmy-bucket\ --s3-prefixjob-attachments\ --paths/path/to/files
For high-bandwidth networks, increase
--threads and
--max-concurrency. For bandwidth-constrained environments,
set --max-bandwidth to throttle uploads. For large files,
increase
--multipart-chunksize.
For a job-based alternative that copies files between Amazon S3 buckets, see Copy an S3 prefix to job attachments on Deadline Cloud.