Skip to content

Instantly share code, notes, and snippets.

@rhiroyuki
Last active February 13, 2019 20:28
Show Gist options
  • Save rhiroyuki/0939cf48224589df925cdef2d4f30a3c to your computer and use it in GitHub Desktop.
Save rhiroyuki/0939cf48224589df925cdef2d4f30a3c to your computer and use it in GitHub Desktop.
Sidekiq
# Getting all jobs in retry
retries = Sidekiq::RetrySet.new
retries.each do |job|
p [job.klass, job.args, job.jid, job['created_at'], job['failed_at']]
end
# job['created_at'] and job['failed_at'] return epoch time, to parse it use Time.at(job['created_at'].to_f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment