Skip to content

Commit

Permalink
Add old queues method back, sidekiq#2142
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Jan 28, 2015
1 parent 5b409e7 commit e5b9f5e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/sidekiq/api.rb
Expand Up @@ -43,6 +43,10 @@ def default_queue_latency
stat :default_queue_latency
end

def queues
Sidekiq::Stats::Queues.new.lengths
end

def fetch_stats!
pipe1_res = Sidekiq.redis do |conn|
conn.pipelined do
Expand Down

0 comments on commit e5b9f5e

Please sign in to comment.