Is there a way to get a list of all the jobs currently in the queue and running? Basically, I want to know if a job of given class is already there, I don\'t want to insert my o
running jobs:
Sidekiq::Workers.new.each do |_process_id, _thread_id, work| p work end
queued jobs across all queues:
Sidekiq::Queue.all.each do |queue| # p queue.name, queue.size queue.each do |job| p job.klass, job.args end end