2012-03-06 23:17:42 -05:00
|
|
|
|
|
|
|
.hero-unit
|
|
|
|
h1 Sidekiq is #{status}
|
2012-03-07 23:22:21 -05:00
|
|
|
p Processed: #{processed}
|
|
|
|
p Failed: #{failed}
|
|
|
|
p Workers: #{workers.size}
|
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-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
|
|
|
|
- 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]
|
|
|
|
- else
|
|
|
|
td colspan=3 Idle
|
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
|
|
|
|
|