Skip to content

fly pg backup list/restore failed with deadline_exceeded sometimes #4194 #271

@kubosuke

Description

@kubosuke

as I wrote here:
superfly/flyctl#4194

fly pg backup list and fly pg backup restore failed sometimes, possibly because of the timeout value that is defined at here is too tight:

ctx, cancel := context.WithTimeout(cmd.Context(), 10*time.Second)

when I exec barman-cloud-backup-list it took 144sec, it'd be nice if we could increase / speicfy timeout value from CLI

root@2871961a5dd468:/# start_time=$(date +%s)
root@2871961a5dd468:/# barman-cloud-backup-list --cloud-provider aws-s3 --endpoint-url https://fly.storage.tigris.dev --profile barman s3://*** *** > /dev/null
root@2871961a5dd468:/# end_time=$(date +%s)
root@2871961a5dd468:/# echo "Time taken: $((end_time - start_time)) seconds"
Time taken: 144 seconds

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    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