forked from ixti/sidekiq-throttled
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Allow configuring how throttled jobs are pushed back (ixti#150)
This adds support for setting the `requeue_strategy` for a job, to specify what we should do with throttled jobs. The default is `:enqueue`, which is the current behavior: re-add it to the end of the queue. The other option is `:schedule`, which schedules the job for a time in the future when we think we'll have capacity to process it. It's also possible to set the `default_requeue_strategy` in the configuration, to set this behavior for all jobs that do not individually specify a `requeue_strategy`. This may be relevant to Issue ixti#36. Unrelatedly, there's a commit in here that changes the format of some `require_relative` lines, to comply with the new Rubocop rule `Style/RedundantCurrentDirectoryInPath`. I don't feel strongly about this commit; I only added it so that rubocop would pass. --------- Signed-off-by: Diego Marcet <[email protected]> Co-authored-by: anero <[email protected]> Co-authored-by: Diego Marcet <[email protected]> Co-authored-by: Alexey Zapparov <[email protected]> Co-authored-by: Mauricio Novelo <[email protected]>
- Loading branch information
1 parent
8f3fcf2
commit 27ec05e
Showing
18 changed files
with
1,176 additions
and
41 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
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
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
Oops, something went wrong.