Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.
This repository was archived by the owner on May 16, 2023. It is now read-only.

Parameterize Retry logic to Config #179

@klauern

Description

@klauern

I've been experimenting with different retry logic configurations for different use cases. It would be nice to be able to specify the different retry options in a configuration file, environment variable, or flag (or all 3).

sigil/pkg/aws/aws.go

Lines 93 to 97 in c4ad289

numMaxRetries = 5
minRetryDelay = 10 * time.Millisecond
minThrottleDelay = 500 * time.Millisecond
maxRetryDelay = 1 * time.Second
maxThrottleDelay = 4 * time.Second

I currently have a retry policy that is much higher than the default, but I am not sure whether that should be a universal setting, so I would prefer not to force it on everyone using this tool:

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions