Skip to content

Instantly share code, notes, and snippets.

@tjbladez
Created July 19, 2016 14:05
Show Gist options
  • Save tjbladez/b81497baa7951bbd33d8a9014224abbf to your computer and use it in GitHub Desktop.
Save tjbladez/b81497baa7951bbd33d8a9014224abbf to your computer and use it in GitHub Desktop.
## retry set
rs = Sidekiq::RetrySet.new
jobs = rs.select do |job|
job.klass == 'Activity::SupportReportingCacheWorker'
end
#jobs.count
jobs.each(&:delete)
## dead set
ds = Sidekiq::DeadSet.new
ds.clear
## working now
ps = Sidekiq::ProcessSet.new
## scheduled
ss = Sidekiq::ScheduledSet.new
## queue
queue = Sidekiq::Queue.new("queuename")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment