Skip to content

Instantly share code, notes, and snippets.

@athoune
Last active Dec 11, 2017
Embed
What would you like to do?
Get all Sidekiq's queues length
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