-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
fix(core): exponential retry on cache put fail #29017
fix(core): exponential retry on cache put fail #29017
Conversation
Fix exponential retries so that it behaves according to the comments. The current comments and implementation of this exponential backoff are not behaving correctly, causing issues when many (~100) parallel tasks access the same local cache. I've updated it to have the correct functionality while still maintaining the max allowable time.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
View your CI Pipeline Execution ↗ for commit 517ac95.
☁️ Nx Cloud last updated this comment at |
@AgentEnder @Cammisuli Please take a look and give feedback if need be. Thank you 🙏 🙏 |
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Fix exponential retries so that it behaves according to the comments.
The current comments and implementation of this exponential backoff are not behaving correctly, causing issues when many (~100) parallel tasks access the same local cache on a Network Drive. I've updated it to have the correct functionality while maintaining the maximum allowable time.
Current Behavior
The current exponential backoff retry logic only allows up to 1364 ms (4 + 4² + 4³ + 4⁴ + 4⁵), while the comment allows up to 20480 ms, albeit with confusing maths.
Expected Behavior
Exponential backoff retry is run correctly with the maximum allowable time of 20480 ms
Related Issue(s)
#21926
Fixes #21926