Repository navigation
fix!: Add default worker retry config values - #892
Merged
Merged
Conversation
Currently, workers will not retry by default even though the default retry config has `max-retries = 25`. This is because there is no retry strategy nor delay provided. This PR adds sensible defaults for the retry config. This is maybe technically a breaking change, but it can also be considered a bug fix because we want workers to retry by default with the given `max-retries = 25` default. This PR also fixes the exponential backoff delay calculation -- before, it would always be 0 if the delay config was < 1000 and always 1 second if the delay config was >= 1000 and < 2000. This PR also fixes the delay calcuations to use `saturating_*` methods to avoid overflows.
Codecov Report❌ Patch coverage is
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Merged
spencewenski
added a commit
that referenced
this pull request
Aug 5, 2025
## 🤖 New release * `roadster`: 0.8.0 -> 0.8.1 (✓ API compatible changes) <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> ## [0.8.1](roadster-v0.8.0...roadster-v0.8.1) - 2025-08-05 ### Fixed - [**breaking**] Add default worker retry config values ([#892](#892)) - *(docs)* Change background jobs header levels ([#881](#881)) - *(docs)* Fix typo in docs ([#879](#879)) - *(docs)* Update references to Service in book ([#878](#878)) ### Other - *(deps)* bump taiki-e/install-action from 2.56.3 to 2.57.5 ([#883](#883)) - *(deps)* bump obi1kenobi/cargo-semver-checks-action from 2.6 to 2.8 ([#882](#882)) - *(deps)* bump MarcoIeni/release-plz-action from 0.5.106 to 0.5.110 ([#884](#884)) - *(deps)* bump rui314/setup-mold from e16410e7f8d9e167b74ad5697a9089a35126eb50 to 7344740a9418dcdcb481c7df83d9fbd1d5072d7d ([#885](#885)) - *(deps)* bump tonic from 0.13.0 to 0.13.1 ([#888](#888)) - *(deps)* bump rand from 0.9.0 to 0.9.2 ([#886](#886)) - *(deps)* bump tokio from 1.44.2 to 1.46.1 ([#887](#887)) - *(deps)* bump sqlx from 0.8.5 to 0.8.6 ([#889](#889)) - *(deps)* bump config from 0.15.11 to 0.15.13 ([#890](#890)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Spencer Ferris <3319370+spencewenski@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currently, workers will not retry by default even though the default retry config has
max-retries = 25. This is because there is no retry strategy nor delay provided.This PR adds sensible defaults for the retry config. This is maybe technically a breaking change, but it can also be considered a bug fix because we want workers to retry by default with the given
max-retries = 25default.This PR also fixes the exponential backoff delay calculation -- before, it would always be 0 if the delay config was < 1000 and always 1 second if the delay config was >= 1000 and < 2000.
This PR also fixes the delay calcuations to use
saturating_*methods to avoid overflows.Closes #891