📜  按类取消 sidekiq 工作人员 - 任何代码示例

📅  最后修改于: 2022-03-11 14:59:12.927000             🧑  作者: Mango

代码示例1
queue = Sidekiq::Queue.new("mailer")
queue.each do |job|
  job.klass # => 'MyWorker'
  job.args # => [1, 2, 3]
  job.delete if job.jid == 'abcdef1234567890'
end