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

implement exponential backoff #34

Merged
merged 4 commits into from
May 30, 2024
Merged

implement exponential backoff #34

merged 4 commits into from
May 30, 2024

Conversation

Jayko001
Copy link
Collaborator

No description provided.

@Jayko001 Jayko001 requested a review from ChuckHend May 30, 2024 17:45
src/lib.rs Outdated
.map_err(|e| match e {
clerk_rs::apis::Error::Reqwest(ref reqwest_error) => {
if let Some(status_code) = reqwest_error.status() {
if status_code == reqwest::StatusCode::TOO_MANY_REQUESTS {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think 5xx should also be retried. I have seen 502/503 from clerk as well.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can add that later though.

@Jayko001 Jayko001 merged commit 9132b59 into main May 30, 2024
2 checks passed
@Jayko001 Jayko001 deleted the backoff branch May 30, 2024 18:11
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

Successfully merging this pull request may close these issues.

2 participants