1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

show in the retry page any other information added to the job by middlewares

This commit is contained in:
Rafael Souza 2013-05-30 01:07:49 -03:00
parent 45db83e7de
commit f162454396
2 changed files with 17 additions and 0 deletions

View file

@ -107,6 +107,19 @@ module Sidekiq
args.map { |arg| a = arg.inspect; a.size > count ? "#{a[0..count]}..." : a }.join(", ")
end
def display_extra_items(retry_job)
regular_keys = [
"queue", "class", "args", "retry_count", "retried_at", "failed_at",
"retry", "jid", "error_message", "error_class", "backtrace", "error_backtrace"
]
{}.tap do |extra|
retry_job.item.each do |key, value|
extra[key] = value unless regular_keys.include?(key)
end
end
end
def tabs
@tabs ||= {
"Dashboard" => '',

View file

@ -19,6 +19,10 @@ table class="retry table table-bordered table-striped"
th JID
td
code= @retry.jid
tr
th Extras
td
code= display_args(display_extra_items(@retry), 1000)
- if @retry['retry_count'] > 0
tr
th = t('RetryCount')