ContinuePresignedUpload

continue_presigned_upload(file_path, is_multipart_upload, parts)

Description

High level wrapper function to upload artifact. It checks to upload file in chunks or not based on the size.

Arguments

  • file_path: Local path of the artifact to be uploaded.
  • is_multipart_upload: flag returned by post_artifacts_presigned_startupload.
  • parts: presigned urls returned by post_artifacts_presigned_startupload.

Returns

  • parts: parts with ETag updated for multipart upload.

Usages

parts = continue_presigned_upload(file_path, start_upload_response.parsed.is_multipart_upload, start_upload_response.parsed.parts)