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

53 lines
1.5 KiB
Text
Raw Normal View History

2012-03-29 13:48:06 -04:00
header
h1 Job
2012-03-29 13:48:06 -04:00
- @retries.each do |msg|
2012-03-29 13:48:06 -04:00
table class="table table-striped table-bordered"
tbody
tr
th Queue
2012-03-29 13:48:06 -04:00
td
a href="#{root_path}queues/#{msg['queue']}" #{msg['queue']}
2012-03-29 13:48:06 -04:00
tr
th Job Class
2012-03-29 13:48:06 -04:00
td
code= msg['class']
tr
th Job Arguments
2012-03-29 13:48:06 -04:00
td
code= display_args(msg['args'], 1000)
2012-03-29 13:48:06 -04:00
- if msg['retry_count'] > 0
tr
th Retry Count
2012-03-29 13:48:06 -04:00
td= msg['retry_count']
tr
th Last Retry
2012-08-20 10:19:59 +09:00
td== relative_time(msg['retried_at'].is_a?(Numeric) ? Time.at(msg['retried_at']) : Time.parse(msg['retried_at']))
2012-03-29 13:48:06 -04:00
- else
tr
th Originally Failed
2012-08-20 10:19:59 +09:00
td== relative_time(msg['failed_at'].is_a?(Numeric) ? Time.at(msg['failed_at']) : Time.parse(msg['failed_at']))
2012-03-29 13:48:06 -04:00
tr
th Next Retry
td== relative_time(Time.at(@score))
2012-03-29 13:48:06 -04:00
h1 Error
table class="table table-striped table-bordered"
tbody
tr
th Error Class
td
code= msg['error_class']
tr
th Error Message
td= msg['error_message']
- if !msg['error_backtrace'].nil?
tr
th Error Backtrace
td
code== msg['error_backtrace'].join("<br/>")
form.form-horizontal action="#{root_path}retries/#{@score}" method="post"
a.btn href="#{root_path}retries" &larr; Back
input.btn.btn-primary type="submit" name="retry" value="Retry Now"
input.btn.btn-danger type="submit" name="delete" value="Delete"