Skip to content

Instantly share code, notes, and snippets.

@joeyAghion
Last active April 8, 2018 02:14
Show Gist options
  • Select an option

  • Save joeyAghion/9274268 to your computer and use it in GitHub Desktop.

Select an option

Save joeyAghion/9274268 to your computer and use it in GitHub Desktop.
delayed jobs by queue and priority
pp Delayed::Job.distinct(:queue).sort.map{|q| Delayed::Job.where(queue: q).distinct(:priority).sort.map{|p| [q, p, Delayed::Job.where(queue: q, priority: p).count] } }.sort; nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment