hashicorp / hashicorp/go-retryablehttp

Max backoff/elapsed time

Open
#236 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.3k
Forks
298
PR merge metrics
No merged PRs in 30d

Description

Similar config as this: https://pkg.go.dev/github.com/cenkalti/backoff/v4#WithMaxElapsedTime
The limit of the time that can be spent per request including all retries and delays.
I understand that this goal can be achieved using context timeout, but it's often easier to limit requests to the client on the initialization level instead of passing it to the caller.
The setting itself can conflict with `RetryMax`, assuming that both of them decide when to stop, but logically I would expect quitting by the first one to reach the boundary. In other words, either maximum retries exceeded, or max backoff time reached the limit.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.