forked from resque/resque
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Resque.enqueue return something deterministic
Currently Resque.enqueue returns an empty [] or the results of the after_enqueue_hooks that may have been run. If the before_enqueue_hook rejected the operation we get back a nil. This commit simply changes enqueue to return nil on rejection and true if the job is actually queued.
- Loading branch information
1 parent
192d347
commit 1f7411d
Showing
2 changed files
with
6 additions
and
4 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