Skip to content

Instantly share code, notes, and snippets.

@Heavyblade
Created January 23, 2013 21:33
Show Gist options
  • Select an option

  • Save Heavyblade/4613751 to your computer and use it in GitHub Desktop.

Select an option

Save Heavyblade/4613751 to your computer and use it in GitHub Desktop.
::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