2012-03-06 23:17:42 -05:00
|
|
|
|
|
|
|
.hero-unit
|
2012-03-17 12:41:24 -04:00
|
|
|
h1 Sidekiq is #{current_status}
|
2012-03-07 23:22:21 -05:00
|
|
|
p Processed: #{processed}
|
|
|
|
p Failed: #{failed}
|
|
|
|
p Workers: #{workers.size}
|
2012-03-18 15:29:09 -04:00
|
|
|
p Retries Pending: #{retry_count}
|
2012-03-05 23:53:14 -05:00
|
|
|
|
|
|
|
.tabbable
|
|
|
|
ul.nav.nav-tabs
|
|
|
|
li.active
|
|
|
|
a href="#workers" data-toggle="tab" Workers
|
2012-03-07 23:22:21 -05:00
|
|
|
li
|
|
|
|
a href="#queues" data-toggle="tab" Queues
|
2012-03-18 15:29:09 -04:00
|
|
|
li
|
|
|
|
a href="#retries" data-toggle="tab" Retries
|
2012-03-05 23:53:14 -05:00
|
|
|
.tab-content
|
2012-03-07 23:22:21 -05:00
|
|
|
#workers.tab-pane.active
|
2012-03-05 23:53:14 -05:00
|
|
|
table class="table table-striped table-bordered"
|
|
|
|
tr
|
2012-03-06 23:17:42 -05:00
|
|
|
th Worker
|
|
|
|
th Queue
|
|
|
|
th Class
|
|
|
|
th Arguments
|
2012-03-29 16:58:40 -04:00
|
|
|
th Started
|
2012-03-06 23:17:42 -05:00
|
|
|
- workers.each do |(worker, msg)|
|
2012-03-05 23:53:14 -05:00
|
|
|
tr
|
2012-03-06 23:17:42 -05:00
|
|
|
td= worker
|
|
|
|
- if msg
|
|
|
|
td= msg['queue']
|
|
|
|
td= msg['payload']['class']
|
|
|
|
td= msg['payload']['args'].inspect[0..100]
|
2012-03-29 16:58:40 -04:00
|
|
|
td== relative_time(Time.parse(msg['run_at']))
|
2012-03-06 23:17:42 -05:00
|
|
|
- else
|
2012-03-29 17:03:23 -04:00
|
|
|
td colspan=4 Idle
|
2012-03-28 22:16:54 -04:00
|
|
|
form action="#{root_path}reset" method="post"
|
|
|
|
button.btn type="submit" Clear worker list
|
2012-03-07 23:22:21 -05:00
|
|
|
|
|
|
|
#queues.tab-pane
|
|
|
|
table class="table table-striped table-bordered"
|
|
|
|
tr
|
|
|
|
th Queue
|
|
|
|
th Size
|
|
|
|
- queues.each do |(queue, size)|
|
|
|
|
tr
|
|
|
|
td
|
|
|
|
a href="queues/#{queue}" #{queue}
|
|
|
|
td= size
|
|
|
|
|
2012-03-18 15:29:09 -04:00
|
|
|
#retries.tab-pane
|
|
|
|
table class="table table-striped table-bordered"
|
|
|
|
tr
|
|
|
|
th Next Retry
|
|
|
|
th Retry Count
|
|
|
|
th Queue
|
|
|
|
th Worker
|
|
|
|
th Args
|
|
|
|
- retries.each do |(msg, score)|
|
|
|
|
tr
|
2012-03-29 13:48:06 -04:00
|
|
|
td
|
2012-03-29 16:58:04 -04:00
|
|
|
a href="retries/#{score}"== relative_time(Time.at(score))
|
2012-03-18 15:29:09 -04:00
|
|
|
td= msg['retry_count']
|
|
|
|
td
|
|
|
|
a href="queues/#{msg['queue']}" #{msg['queue']}
|
|
|
|
td= msg['class']
|
|
|
|
td= msg['args'].inspect[0..100]
|
|
|
|
|