Skip to content

Instantly share code, notes, and snippets.

@gabrieljoelc
Created September 28, 2014 17:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrieljoelc/c337a0dde4e2231337c7 to your computer and use it in GitHub Desktop.
Save gabrieljoelc/c337a0dde4e2231337c7 to your computer and use it in GitHub Desktop.
queue = Sidekiq::Queue.new("deferred")
csv CSV.new
queue.each do |job|
job.klass # => 'DeferredReady'
job.args # => [1]
csv << "#{job.id}#{job.klass},#{job.args}"
end
queue.clear
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment