Skip to content

extend time limit for completion of multipart upload #5

Description

@adaviding

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions