Job

Sidekiq で Scheduled Queue されたものを調べる

Scheduled Queue をしらべる require 'sidekiq/api' scheduled = Sidekiq::ScheduledSet.new.select jobs = scheduled.map do |job| if job.klass == '[JOB_CLASS]' {job_id: job.jid, job_klass: job.klass, arguments: job.args} end end.compact 引数で、…