-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor retry to be true/false or N; backward compatible
This changes JsonValue to RetryOpts which is an enum for Yes, Never, and Max(n) to support the sidekiq bool|int typing. The public builder interfaces for opts have now been moved to Into<RetryOpts> which will continue to work for true/false like before but also a numeric value. Also... I found that I hadn't impl'd the RetryMiddleware to respect a retry: false option, so that's been fixed. I also added max_retries to be plucked from the job if set and will be used in favor of whatever the value was for the worker since they can be different. TODO: Need to add a test for the new retry middleware logic. That shouldn't have been a bug in the first place.
- Loading branch information
Showing
4 changed files
with
98 additions
and
27 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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