2012-03-29 13:48:06 -04:00
|
|
|
header
|
2012-05-04 21:00:48 -07:00
|
|
|
h1 Job
|
2012-03-29 13:48:06 -04:00
|
|
|
|
2012-05-04 21:00:48 -07:00
|
|
|
- @retries.each do |msg|
|
2012-03-29 13:48:06 -04:00
|
|
|
table class="table table-striped table-bordered"
|
|
|
|
tbody
|
|
|
|
tr
|
2012-03-29 14:55:44 -04:00
|
|
|
th Queue
|
2012-03-29 13:48:06 -04:00
|
|
|
td
|
2012-03-29 20:55:16 -07:00
|
|
|
a href="#{root_path}queues/#{msg['queue']}" #{msg['queue']}
|
2012-03-29 13:48:06 -04:00
|
|
|
tr
|
2012-03-29 14:55:44 -04:00
|
|
|
th Job Class
|
2012-03-29 13:48:06 -04:00
|
|
|
td
|
|
|
|
code= msg['class']
|
|
|
|
tr
|
2012-03-29 14:55:44 -04:00
|
|
|
th Job Arguments
|
2012-03-29 13:48:06 -04:00
|
|
|
td
|
2012-03-29 14:55:44 -04:00
|
|
|
code= msg['args'].inspect[0..1000]
|
2012-03-29 13:48:06 -04:00
|
|
|
- if msg['retry_count'] > 0
|
|
|
|
tr
|
2012-03-29 14:55:44 -04:00
|
|
|
th Retry Count
|
2012-03-29 13:48:06 -04:00
|
|
|
td= msg['retry_count']
|
|
|
|
tr
|
2012-03-29 14:55:44 -04:00
|
|
|
th Last Retry
|
2012-03-29 16:58:04 -04:00
|
|
|
td== relative_time(Time.parse(msg['retried_at']))
|
2012-03-29 13:48:06 -04:00
|
|
|
- else
|
|
|
|
tr
|
2012-03-29 14:55:44 -04:00
|
|
|
th Originally Failed
|
2012-03-29 16:58:04 -04:00
|
|
|
td== relative_time(Time.parse(msg['failed_at']))
|
2012-03-29 13:48:06 -04:00
|
|
|
tr
|
2012-03-29 14:55:44 -04:00
|
|
|
th Next Retry
|
2012-03-29 20:55:16 -07:00
|
|
|
td== relative_time(Time.at(@score))
|
2012-03-29 13:48:06 -04:00
|
|
|
|
2012-05-04 21:00:48 -07: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/>")
|
2012-03-29 20:55:16 -07:00
|
|
|
form.form-horizontal action="#{root_path}retries/#{@score}" method="post"
|
|
|
|
a.btn href="#{root_path}" ← Back
|
|
|
|
input.btn.btn-primary type="submit" name="retry" value="Retry Now"
|
|
|
|
input.btn.btn-danger type="submit" name="delete" value="Delete"
|