-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
This is a note from a Panopto customer translated to English.
This is regarding the complete_mutlipart_upload step here.
The usual configuration options "max_attempts" and "retry_mode" do not lead to success, see boto3 documentation.
Only the first call to CompleteMultipartUpload can lead to success, which is why increasing the "read_timeout" worked for us, see botocore documentation. The code looks like this:
import boto3 # AWS SDK (boto3)
import requests
from botocore.config import Config
config = Config(
read_timeout=zim_sidecar.load_config()["service"]["uploader"]["read_timeout"]
)
s3 = boto3.session.Session().client(
service_name='s3',
config=config,
endpoint_url=service_endpoint,
verify=self.ssl_verify,
aws_access_key_id='dummy',
aws_secret_access_key='dummy')
s3.upload_file(file_path, bucket, object_key, callback=print_progress)
Metadata
Metadata
Assignees
Labels
No labels