Skip to content

Instantly share code, notes, and snippets.

@DouweM
Created December 17, 2013 13:59
Show Gist options
  • Save DouweM/8005296 to your computer and use it in GitHub Desktop.
Save DouweM/8005296 to your computer and use it in GitHub Desktop.
queues = Hash.new { |h, k| h[k] = [] }
Resque.working.each do |x|
queues[x.job["queue"]] << x.job["run_at"]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment