1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
This commit is contained in:
Mike Perham 2013-05-30 21:13:59 -07:00
parent 20600da581
commit 25447c75e5

View file

@ -107,11 +107,11 @@ module Sidekiq
args.map { |arg| a = arg.inspect; a.size > count ? "#{a[0..count]}..." : a }.join(", ")
end
RETRY_JOB_KEYS = [
"queue", "class", "args", "retry_count", "retried_at", "failed_at",
"retry", "jid", "error_message", "error_class", "backtrace",
"error_backtrace", "unique", "enqueued_at"
]
RETRY_JOB_KEYS = Set.new(%w(
queue class args retry_count retried_at failed_at
jid error_message error_class backtrace
error_backtrace enqueued_at
))
def retry_extra_items(retry_job)
@retry_extra_items ||= {}.tap do |extra|