Sha256: 336d99c2183360b62afbfa5fb58644420bba77bf2462de7a96971576adefc19f

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

.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"


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sidekiq-2.0.0 web/views/index.slim