Retry up to N times in case of 429 response#34
Open
flimzy wants to merge 2 commits intoevalphobia:masterfrom
flimzy:retry
Open
Retry up to N times in case of 429 response#34flimzy wants to merge 2 commits intoevalphobia:masterfrom flimzy:retry
flimzy wants to merge 2 commits intoevalphobia:masterfrom
flimzy:retry
Conversation
This in preparation for running in a loop to handle retries.
|
It seems to me that you'd want to do some kind of exponential backoff here. If Sentry thinks it's overloaded, hammering it repeatedly seems like the wrong thing to do. |
Owner
|
@flimzy Thank you for contributing. And sorry for my lateness. As @mcpherrinm mentioned, I think it needs some waiting time to guarantee the effectiveness. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes #31 .
Additional discussion may be warranted before a merge, though, in case the default behavior should possibly be changed.
As of now, I simply expose a
hook.Retriesfield, which can be set to non-zero to enable retries. Otherwise, behavior remains the same as before.