-
Notifications
You must be signed in to change notification settings - Fork 103
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
feat: truncate poll exponential backoff function to max 10s #674
Conversation
Happy to increase the max to something between 5s and 30s |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #674 +/- ##
==========================================
- Coverage 34.01% 33.92% -0.09%
==========================================
Files 19 19
Lines 1623 1627 +4
==========================================
Hits 552 552
- Misses 1037 1041 +4
Partials 34 34 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10-30 seconds sounds good.
If we have too many users running into rate limits, we could also make it configurable in the future.
🤖 I have created a release *beep* *boop* --- ## [2.9.0](v2.8.0...v2.9.0) (2024-08-08) ### Features * truncate poll exponential backoff function to max 10s ([#674](#674)) ([5785418](5785418)) ### Bug Fixes * xfs options compatibility between alpine and node kernel ([#689](#689)) ([13d853b](13d853b)), closes [#648](#648) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Related to #346 and #380 The initial exponential back off algorithm introduced in #380 was not truncated, which could lead to very long intervals. The recent release of hcloud-go truncated the default exponential back off algorithm to 60s: hetznercloud/hcloud-go@fd1f46c If we take the scenario described in #346, I think we can still reduce the max interval value for the exponential back off algorithm to <30s.
🤖 I have created a release *beep* *boop* --- ## [2.9.0](v2.8.0...v2.9.0) (2024-08-08) ### Features * truncate poll exponential backoff function to max 10s ([#674](#674)) ([5785418](5785418)) ### Bug Fixes * xfs options compatibility between alpine and node kernel ([#689](#689)) ([13d853b](13d853b)), closes [#648](#648) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Related to #346 and #380
The initial exponential back off algorithm introduced in #380 was not truncated, which could lead to very long intervals. The recent release of hcloud-go truncated the default exponential back off algorithm to 60s: hetznercloud/hcloud-go@fd1f46c
If we take the scenario described in #346, I think we can still reduce the max interval value for the exponential back off algorithm to <30s.