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/index.slim

52 lines
1.5 KiB
Text
Raw Normal View History

.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}
2012-04-24 23:12:43 -04:00
p Busy Workers: #{workers.size}
p Scheduled: #{zcard('schedule')}
p Retries Pending: #{zcard('retry')}
2012-05-22 10:16:08 -04:00
p Queue Backlog: #{backlog}
.tabbable
ul.nav.nav-tabs
li.active
2012-04-24 23:12:43 -04:00
a href="#workers" data-toggle="tab" Busy Workers
2012-03-07 23:22:21 -05:00
li
a href="#queues" data-toggle="tab" Queues
.tab-content
2012-03-07 23:22:21 -05:00
#workers.tab-pane.active
table class="table table-striped table-bordered"
tr
th Worker
th Queue
th Class
th Arguments
th Started
- workers.each do |(worker, msg)|
tr
td= worker
2012-04-24 23:12:43 -04:00
td= msg['queue']
td= msg['payload']['class']
td= msg['payload']['args'].inspect[0..100]
td== relative_time(Time.parse(msg['run_at']))
2012-06-05 10:51:18 -04:00
form action="#{root_path}reset" method="post"
button.btn type="submit" title="If you kill -9 Sidekiq, this table can fill up with old data." 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
th
2012-03-07 23:22:21 -05:00
- queues.each do |(queue, size)|
tr
td
a href="#{root_path}queues/#{queue}" #{queue}
2012-03-07 23:22:21 -05:00
td= size
td
form action="#{root_path}queues/#{queue}" method="post"
input.btn.btn-danger type="submit" name="delete" value="Delete"
2012-03-07 23:22:21 -05:00
2012-03-18 15:29:09 -04:00