Sha256: 685b4f8ddaa9181a08d9e93601b8af487ceeab1a71ca64717516aeedc931c9d4

Contents?: true

Size: 530 Bytes

Versions: 9

Compression:

Stored size: 530 Bytes

Contents

%h2 Workers

- unless kthxbye.workers.empty?
  %table
    %th PID
    %th Server
    %th Queues
    %th Working Job
    - kthxbye.workers.each do |worker|
      - host,pid,queues = worker.to_s.split(":")
      %tr
        %td #{pid}
        %td #{host}
        %td #{queues}
        %td 
          - job = Kthxbye::Worker.working_on(worker)
          = job ? "<b>ID</b>: #{job['job_id']} -  <b>Started</b>: #{job['started']}" : "***"

- else
  %span{:style => "color:red"}
    Currently no workers registered.

%p
  = toggle_poll

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kthxbye-1.2.1 lib/kthxbye/web_interface/views/workers.haml
kthxbye-1.2.0 lib/kthxbye/web_interface/views/workers.haml
kthxbye-1.1.1 lib/kthxbye/web_interface/views/workers.haml
kthxbye-1.1.0 lib/kthxbye/web_interface/views/workers.haml
kthxbye-1.0.5 lib/kthxbye/web_interface/views/workers.haml
kthxbye-1.0.4 lib/kthxbye/web_interface/views/workers.haml
kthxbye-1.0.2 lib/kthxbye/web_interface/views/workers.haml
kthxbye-1.0.1 lib/kthxbye/web_interface/views/workers.haml
kthxbye-1.0.0 lib/kthxbye/web_interface/views/workers.haml