Sha256: b52cec7964d9b892c0186b85edbb945976f74559732ea4d5e18e0966d270554b
Contents?: true
Size: 840 Bytes
Versions: 2
Compression:
Stored size: 840 Bytes
Contents
%h2 Workers - unless kthxbye.workers.empty? %table %th PID %th Server %th Queues %th Uptime %th Jobs Run %th Working Job - kthxbye.workers.each do |worker| - host,pid,queues = worker.to_s.split(":") %tr %td #{pid} %td #{host} %td - queues.split(",").each do |queue| %a{:href => "/queues/#{queue}"} #{queues} %td = Time.parse(worker.started).strftime("%m/%d/%Y at %I:%M%p") if worker.started %td = worker.processed %td - job = Kthxbye::Worker.working_on(worker) = job ? "<b>ID</b>: #{job['job_id']} - <b>Started</b>: #{Time.parse(job['started']).strftime("%I:%M%p")}" : "***" - else %span{:style => "color:red"} Currently no workers registered. %p = toggle_poll
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
kthxbye-1.3.2 | lib/kthxbye/web_interface/views/workers.haml |
kthxbye-1.3.0 | lib/kthxbye/web_interface/views/workers.haml |