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

Improve retry logic #143

Merged
merged 6 commits into from
Aug 23, 2024
Merged

Improve retry logic #143

merged 6 commits into from
Aug 23, 2024

Conversation

whites11
Copy link
Contributor

@whites11 whites11 commented Aug 22, 2024

Towards: #133

This PR:

  • Replaces own code with backoff library for backoff type use cases
  • Add automatic retry of 429 and 5xx errors

as a side effect this PR makes end to end tests dramatically more reliable

Add automatic retry of 429 and 5xx errors
Add automatic retry of 429 and 5xx errors
Add automatic retry of 429 and 5xx errors
@whites11 whites11 changed the title Use library for backoff retries instead of own code. Improve retry logic Aug 22, 2024
Add automatic retry of 429 and 5xx errors
Add automatic retry of 429 and 5xx errors
@whites11 whites11 marked this pull request as ready for review August 22, 2024 15:31
@whites11 whites11 requested a review from a team as a code owner August 22, 2024 15:31
Add automatic retry of 429 and 5xx errors
@whites11 whites11 enabled auto-merge (squash) August 22, 2024 15:34
@whites11 whites11 self-assigned this Aug 22, 2024
pkg/internal/api/client.go Show resolved Hide resolved
pkg/internal/api/client.go Show resolved Hide resolved
pkg/internal/api/client.go Show resolved Hide resolved
pkg/internal/api/client.go Show resolved Hide resolved
@whites11 whites11 merged commit a6af408 into main Aug 23, 2024
4 checks passed
@whites11 whites11 deleted the backoff-retry branch August 23, 2024 07:24
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