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

Feature: Retry policy with exponential delay #1065

Merged
merged 2 commits into from
May 14, 2024

Conversation

nozzlegear
Copy link
Owner

@nozzlegear nozzlegear commented May 13, 2024

This pull adds a retry policy with an exponential delay in between failed requests. It's very similar to the default RetryExecutionPolicy, except that each failure adds a (2 ^ currentTry - 1) * delayInMilliseconds before it tries again.

The policy makes not attempt to be smart, it does not care about Shopify rate limits or other requests made by the same shop. It's just a "dumb" policy that will exponentially delay itself until a request goes through or a maximum number of tries have been attempted.

Just missing the last few tests before merging.

@nozzlegear nozzlegear merged commit 5b19388 into master May 14, 2024
@nozzlegear nozzlegear deleted the exponential-retry-policy branch May 14, 2024 20:33
@nozzlegear nozzlegear added this to the 6.16.0 milestone May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant