-
Notifications
You must be signed in to change notification settings - Fork 621
chore: Add jittered retry on auth call #6524
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
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6524 +/- ##
=======================================
Coverage 54.93% 54.93%
=======================================
Files 881 881
Lines 55184 55184
Branches 3768 3768
=======================================
Hits 30313 30313
Misses 24776 24776
Partials 95 95
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Adds a retry (up to 3 attempts) with 20-400ms delay on auth calls
PR-Codex overview
This PR introduces a
retryCountoption for the authentication request, allowing it to retry fetching team and project data up to a specified number of times. It also adds a helper function to introduce random delays between retries.Detailed summary
retryCountproperty to the configuration with a default value of 3.fetchTeamAndProjectfunction, allowing up toretryCountattempts.sleepRandomMsfunction to add random delays between retries.