-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverts to placing jobs at the end of the queue
- It is impossible to preserve job ordering due to interleaving of dequeueing/enqueueing with multiple workers by lpushing jobs back onto the resque queue. Assume N workers. Assume N+1 jobs for mutex A. Until job1 is complete workers will grab jobs and place them back on the front of the queue in an indeterminate order. Therefore, we default to re-enqueuing jobs at the end of the queue to avoid temporary starvation where jobs associated with mutex A can block jobs for all other mutexes. - Rename lpush to reenqueue so that users of resque-lonely_job can overwrite job re-enqueueing behavior as needed.
- Loading branch information
Showing
2 changed files
with
16 additions
and
12 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