Module: Sidekiq::Worker::ClassMethods

Defined in:
lib/sidekiq/cobweb_helper.rb

Instance Method Summary collapse

Instance Method Details

#queue_items(start = 0, finish = -1)) ⇒ Object



26
27
28
29
30
# File 'lib/sidekiq/cobweb_helper.rb', line 26

def queue_items(start=0, finish=-1)
  Sidekiq.redis do |conn|
    conn.lrange("queue:#{get_sidekiq_options["queue"]}", start, finish)
  end
end

#queue_sizeObject



21
22
23
24
25
# File 'lib/sidekiq/cobweb_helper.rb', line 21

def queue_size
  Sidekiq.redis do |conn|
    conn.llen("queue:#{get_sidekiq_options["queue"]}")
  end
end