Skip to content

Instantly share code, notes, and snippets.

@athoune
Last active December 11, 2017 09:50
Show Gist options
  • Save athoune/4e777a0d56c9764cfcfd6a33a29237d4 to your computer and use it in GitHub Desktop.
Save athoune/4e777a0d56c9764cfcfd6a33a29237d4 to your computer and use it in GitHub Desktop.
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