2012-03-06 20:17:42 -08:00
|
|
|
|
|
|
|
.hero-unit
|
2012-03-17 09:41:24 -07:00
|
|
|
h1 Sidekiq is #{current_status}
|
2012-03-07 20:22:21 -08:00
|
|
|
p Processed: #{processed}
|
|
|
|
p Failed: #{failed}
|
2012-04-24 20:12:43 -07:00
|
|
|
p Busy Workers: #{workers.size}
|
2012-03-18 12:29:09 -07:00
|
|
|
p Retries Pending: #{retry_count}
|
2012-05-22 07:16:08 -07:00
|
|
|
p Queue Backlog: #{backlog}
|
2012-03-05 20:53:14 -08:00
|
|
|
|
|
|
|
.tabbable
|
|
|
|
ul.nav.nav-tabs
|
|
|
|
li.active
|
2012-04-24 20:12:43 -07:00
|
|
|
a href="#workers" data-toggle="tab" Busy Workers
|
2012-03-07 20:22:21 -08:00
|
|
|
li
|
|
|
|
a href="#queues" data-toggle="tab" Queues
|
2012-03-05 20:53:14 -08:00
|
|
|
.tab-content
|
2012-03-07 20:22:21 -08:00
|
|
|
#workers.tab-pane.active
|
2012-03-05 20:53:14 -08:00
|
|
|
table class="table table-striped table-bordered"
|
|
|
|
tr
|
2012-03-06 20:17:42 -08:00
|
|
|
th Worker
|
|
|
|
th Queue
|
|
|
|
th Class
|
|
|
|
th Arguments
|
2012-03-29 16:58:40 -04:00
|
|
|
th Started
|
2012-03-06 20:17:42 -08:00
|
|
|
- workers.each do |(worker, msg)|
|
2012-03-05 20:53:14 -08:00
|
|
|
tr
|
2012-03-06 20:17:42 -08:00
|
|
|
td= worker
|
2012-04-24 20:12:43 -07:00
|
|
|
td= msg['queue']
|
|
|
|
td= msg['payload']['class']
|
|
|
|
td= msg['payload']['args'].inspect[0..100]
|
|
|
|
td== relative_time(Time.parse(msg['run_at']))
|
2012-03-07 20:22:21 -08:00
|
|
|
|
|
|
|
#queues.tab-pane
|
|
|
|
table class="table table-striped table-bordered"
|
|
|
|
tr
|
|
|
|
th Queue
|
|
|
|
th Size
|
2012-05-02 20:19:59 -07:00
|
|
|
th
|
2012-03-07 20:22:21 -08:00
|
|
|
- queues.each do |(queue, size)|
|
|
|
|
tr
|
|
|
|
td
|
2012-05-02 20:19:59 -07:00
|
|
|
a href="#{root_path}queues/#{queue}" #{queue}
|
2012-03-07 20:22:21 -08:00
|
|
|
td= size
|
2012-05-02 20:19:59 -07:00
|
|
|
td
|
|
|
|
form action="#{root_path}queues/#{queue}" method="post"
|
|
|
|
input.btn.btn-danger type="submit" name="delete" value="Delete"
|
2012-03-07 20:22:21 -08:00
|
|
|
|
2012-03-18 12:29:09 -07:00
|
|
|
|