Skip to content

Instantly share code, notes, and snippets.

@etagwerker
Last active December 31, 2015 22:49
Show Gist options
  • Select an option

  • Save etagwerker/8056239 to your computer and use it in GitHub Desktop.

Select an option

Save etagwerker/8056239 to your computer and use it in GitHub Desktop.
A way to process all jobs in all queues in Sidekiq
q = Sidekiq::Queue.new
q.each do |job|
# Is this the best way?
Object.const_get(job.klass).new.perform *job.args
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment