Created
January 23, 2013 21:33
-
-
Save Heavyblade/4613751 to your computer and use it in GitHub Desktop.
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
| ::Resque.queues.each do |queue| | |
| if queue.classify.constantize.ancestors.include? ::Resque::Plugins::Loner::UniqueJob | |
| ::Resque.peek(queue, 0, -1).each do |job_payload| | |
| hashes << ::Resque::Plugins::Loner::UniqueJob.redis_key(job_payload) | |
| end | |
| end unless queues_are_not_loners.include? queue | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment