Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Max backoff/elapsed time #236

Open
SirSova opened this issue Aug 29, 2024 · 0 comments
Open

Max backoff/elapsed time #236

SirSova opened this issue Aug 29, 2024 · 0 comments

Comments

@SirSova
Copy link

SirSova commented Aug 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant