RemoteUploader#
- class composer.utils.RemoteUploader(remote_folder, backend_kwargs=None, num_concurrent_uploads=2, num_attempts=3)[source]#
Class for uploading a file to object store asynchronously.
- check_workers()[source]#
Non-blocking call to check workers are either running or done.
Traverse self.futures, and check if itโs completed 1. if it completed with exception, raise that exception 2. if it completed without exception, remove it from self.futures
- upload_file_async(remote_file_name, file_path, overwrite)[source]#
Async call to submit a job for uploading.
It returns a future, so users can track the status of the individual future. User can also call wait() to wait for all the futures.