Sidekiq list all jobs [queued + running]

if you want to list all currently running jobs from console, try this

workers = Sidekiq::Workers.new
workers.each do |_process_id, _thread_id, work|
  p work
end

a work is a hash.

to list all queue data.

queues = Sidekiq::Queue.all
queues.each do |queue|
  queue.each do |job|
    p job.klass, job.args, job.jid
  end
end

for a specific queue change this to Sidekiq::Queue.new('queue_name')

similarly you can get all scheduled jobs using Sidekiq::ScheduledSet.new

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)