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

chore: do not retry on bare HTTP 429 or HTTP 503 #486

Merged
merged 1 commit into from
Jul 19, 2024
Merged

Conversation

jooola
Copy link
Member

@jooola jooola commented Jul 18, 2024

Related to #470

This is only a chore to prevent confusion with the now updated release-please commits in #470

We prefer not to retry requests:

  • If the ingress returns a "bare" 429, as the backend was not able to respond anyway.
  • If the ingress returns a "bare" 503, to prevent possible self-made DDoS, and preventing a disaster recovery.

@jooola jooola requested a review from a team as a code owner July 18, 2024 08:49
@jooola jooola requested a review from apricote July 18, 2024 09:03
Related to #470

We prefer not to retry requests:
- If the ingress return a "bare" 429, as the backend was not able to respond anyway.
- If the ingress return a "bare" 503, to prevent possible self made ddos, and preventing a disaster recovery.
Copy link

codecov bot commented Jul 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.54%. Comparing base (f7ac563) to head (fbafb2e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #486      +/-   ##
==========================================
- Coverage   71.56%   71.54%   -0.02%     
==========================================
  Files          45       45              
  Lines        3903     3901       -2     
==========================================
- Hits         2793     2791       -2     
  Misses        696      696              
  Partials      414      414              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@jooola jooola changed the title chore: do not retry on HTTP 429 or HTTP 503 chore: do not retry on bare HTTP 429 or HTTP 503 Jul 18, 2024
@jooola jooola merged commit 6d4413b into main Jul 19, 2024
4 checks passed
@jooola jooola deleted the update-retry-policy branch July 19, 2024 07:54
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