Created
July 31, 2014 08:26
-
-
Save karavanis/5dcf284e65bc3cfe105b to your computer and use it in GitHub Desktop.
Ruby script to get the queue load on Sidekiq
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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