Skip to content
This repository has been archived by the owner on Dec 19, 2017. It is now read-only.

Make MaxTries configurable #250

Open
SStorm opened this issue Apr 30, 2015 · 0 comments
Open

Make MaxTries configurable #250

SStorm opened this issue Apr 30, 2015 · 0 comments

Comments

@SStorm
Copy link

SStorm commented Apr 30, 2015

It's currently hardcoded to 3 attempts, which is not enough in some cases. I.e. we have a heavily used testing account where API throttling happens often. The code in question is this:

in aws/client.go

var retryingTransport = &ResilientTransport{
        Deadline: func() time.Time {
                return time.Now().Add(5 * time.Second)
        },
        DialTimeout: 10 * time.Second,
        MaxTries:    3,
        ShouldRetry: awsRetry,
        Wait:        ExpBackoff,
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant