From e5b9f5e5d97de033695755c76d4d80f1dab8ab66 Mon Sep 17 00:00:00 2001 From: Mike Perham Date: Wed, 28 Jan 2015 08:47:09 -0800 Subject: [PATCH] Add old queues method back, #2142 --- lib/sidekiq/api.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/sidekiq/api.rb b/lib/sidekiq/api.rb index d37f4337..61e54931 100644 --- a/lib/sidekiq/api.rb +++ b/lib/sidekiq/api.rb @@ -43,6 +43,10 @@ module Sidekiq 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