Remove all jobs for queue

Removing specific jobs from a queue

From the Sidekiq API, jobs can be deleted by:

  • Class type
  • Arguments
  • Job ID
queue ="mailer")
queue.each do |job|
  job.klass # => 'MyWorker'
  job.args # => [1, 2, 3]
  job.delete if job.jid == 'abcdef1234567890'

Check the latency for a queue"mailer").latency

Inspecting runtime stats

Default queue latency: Retry queue latency:'retry').latency

Processes and Workers

The processes that Sidekiq currently has configured.

A ‘worker’ is defined as a thread currently processing a job

Sidekiq testing We use the inline! method to test jobs synchronously.