Last active
December 11, 2017 09:50
-
-
Save athoune/4e777a0d56c9764cfcfd6a33a29237d4 to your computer and use it in GitHub Desktop.
Get all Sidekiq's queues length
This file contains 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
local a={} | |
local queues=redis.call('smembers', 'resque:gitlab:queues') | |
for i,v in ipairs(queues) do | |
a[i*2-1] = 'queue:' .. v | |
a[i*2] = redis.call('llen', 'resqueue:gitlab:queue:' .. v) | |
end | |
return a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment