Skip to content

Instantly share code, notes, and snippets.

@blasterpal
Created January 7, 2013 20:20
Show Gist options
  • Select an option

  • Save blasterpal/4478058 to your computer and use it in GitHub Desktop.

Select an option

Save blasterpal/4478058 to your computer and use it in GitHub Desktop.
Sidekiq - list of queues being processed currently
Sidekiq.redis {|conn| conn.smembers('workers').map{|w| msg = conn.get("worker:#{w}"); msg ? [w, Sidekiq.load_json(msg)] : nil; }.compact.map{|w| w[1]["queue"]}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment