Last active
February 13, 2019 20:28
-
-
Save rhiroyuki/0939cf48224589df925cdef2d4f30a3c to your computer and use it in GitHub Desktop.
Sidekiq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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