-
I have an application that performs retries of an
Is there any way to configure my
|
Beta Was this translation helpful? Give feedback.
Answered by
AlexVulaj
Oct 23, 2023
Replies: 2 comments
-
For anyone else curious, I ended up overriding the Backoff function with something like this: ...
config.WithRetryer(func() aws.Retryer {
return retry.NewStandard(func(opts *retry.StandardOptions) {
opts.Backoff = retry.BackoffDelayerFunc(func(attempt int, err error) (time.Duration, error) {
fmt.Printf("Retry attempt %v of %v\n", attempt, opts.MaxAttempts)
return 3 * time.Second, nil
})
})
})
... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
AlexVulaj
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For anyone else curious, I ended up overriding the Backoff function with something like this: