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
Mike Perham 2c4be4cada Scheduled jobs! Bump to 2.0.0.
Performs can now be scheduled at arbitrary points in the future.
2012-05-25 20:21:42 -07:00

49 lines
1.3 KiB
Text

.hero-unit
h1 Sidekiq is #{current_status}
p Processed: #{processed}
p Failed: #{failed}
p Busy Workers: #{workers.size}
p Scheduled: #{zcard('schedule')}
p Retries Pending: #{zcard('retry')}
p Queue Backlog: #{backlog}
.tabbable
ul.nav.nav-tabs
li.active
a href="#workers" data-toggle="tab" Busy Workers
li
a href="#queues" data-toggle="tab" Queues
.tab-content
#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
td= msg['queue']
td= msg['payload']['class']
td= msg['payload']['args'].inspect[0..100]
td== relative_time(Time.parse(msg['run_at']))
#queues.tab-pane
table class="table table-striped table-bordered"
tr
th Queue
th Size
th
- queues.each do |(queue, size)|
tr
td
a href="#{root_path}queues/#{queue}" #{queue}
td= size
td
form action="#{root_path}queues/#{queue}" method="post"
input.btn.btn-danger type="submit" name="delete" value="Delete"