Skip to content

Instantly share code, notes, and snippets.

@karavanis
Created July 31, 2014 08:26
Show Gist options
  • Save karavanis/5dcf284e65bc3cfe105b to your computer and use it in GitHub Desktop.
Save karavanis/5dcf284e65bc3cfe105b to your computer and use it in GitHub Desktop.
Ruby script to get the queue load on Sidekiq
loop do
Sidekiq::Client.registered_queues.each do |q|
Sidekiq.redis do |r|
puts "#{q} #{r.lrange("queue:#{q}", 0, -1).size}"
end
end
sleep(10)
puts "\e[H\e[2J"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment