Sha256: da6e81a646b37533f259bd60d8acff34f59199754be16dc47f15510c37724a9b

Contents?: true

Size: 809 Bytes

Versions: 2

Compression:

Stored size: 809 Bytes

Contents

table class="workers table table-hover table-bordered table-striped table-white"
  thead
    th Worker
    th Queue
    th Class
    th Arguments
    th Started
  - workers.each_with_index do |(worker, msg), index|
    tr
      td= worker
      td
        a href="queues/#{msg['queue']}" = msg['queue']
      td= msg['payload']['class']
      td
        - if msg['payload']['args'].to_s.size > 100
          = msg['payload']['args'].inspect[0..100] + "... "
          button data-toggle="collapse" data-target="#worker_#{index}" class="btn btn-mini" Show All
          .collapse[id="worker_#{index}" style="max-width: 750px;"]= msg['payload']['args']
        - else
          = msg['payload']['args']
      td== relative_time(msg['run_at'].is_a?(Numeric) ? Time.at(msg['run_at']) : Time.parse(msg['run_at']))

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sidekiq-2.5.1 web/views/_workers.slim
sidekiq-2.5.0 web/views/_workers.slim