Skip to content

Instantly share code, notes, and snippets.

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

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

Select an option

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