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 … Read more

Sidekiq Rails 4.2 Use Active Job or Worker? What’s the difference

Short answer is they are the same thing. ActiveJob calls it a Job whereas Sidekiq calls it a Worker. I’ve decided to keep the terminology different so that people can distinguish the two. You can use either one. Note that ActiveJob does not provide access to the full set of Sidekiq options so if you … Read more

Redis raises “NOAUTH Authentication required” error but there is no password setting

We also faced a similar issue. Looks like someone scanned AWS, connected to all public redis servers, and possibly ran “CONFIG SET REQUIREPASS ””, thus locking down the running instance of redis. Once you restart redis, the config is restored to normal. Best thing would be to use AWS security group policy and block port … Read more

how to delete a job in sidekiq

According to this Sidekiq documentation page to delete a job with a single id you need to iterate the queue and call .delete on it. queue = Sidekiq::Queue.new(“mailer”) queue.each do |job| job.klass # => ‘MyWorker’ job.args # => [1, 2, 3] job.delete if job.jid == ‘abcdef1234567890’ end There is also a plugin called sidekiq-status that … Read more

How do I reset my sidekiq counters?

To reset statistics: Sidekiq::Stats.new.reset ref: Add reset stats to Web UI summary box and method to API Also, you can now clear specific stats: single stat by Sidekiq::Stats.new.reset(‘failed’) or multiple stats by Sidekiq::Stats.new.reset(‘failed’, ‘processed’) (Thanks https://stackoverflow.com/users/2475008/tmr08c for update)