mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
2c4be4cada
Performs can now be scheduled at arbitrary points in the future.
49 lines
1.3 KiB
Text
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"
|
|
|
|
|