Sha256: 7ed7b0ad998d5abc54f3182054194e5b4214d2bf0f69675431d00be3de81d995
Contents?: true
Size: 1.96 KB
Versions: 4
Compression:
Stored size: 1.96 KB
Contents
#workers - if @workers.present? .row .col-xs-12 %ol.breadcrumb{ style: 'margin-bottom: 0'} %li.active Workers .btn-group.pull-right - [:stop_all, :pause_all, :resume_all, :destroy_zombies].each do |action| = link_to("#{action.to_s.humanize.capitalize}", rocket_job_mission_control.update_all_workers_path(worker_action: action), method: :patch, data: { confirm: t(:confirm, scope: [:worker, :update_all], action: action.to_s.singularize.humanize.downcase) }, class: 'btn btn-default') .clearfix .grid - @workers.each_slice(4) do |workers| .row - workers.each do |worker| .card.col-xs-12.col-sm-6.col-md-3.col-lg-3 .inner.callout-top{ class: worker_card_class(worker) } .title %h3 = worker.name .state %b State: = worker.state .threads.max_threads %b Max Threads: = worker.max_threads .threads.current_threads %b Current Threads: = worker.heartbeat.current_threads.to_i .time %b Started: = "#{RocketJob.seconds_as_duration(Time.now - worker.started_at)} ago" .heartbeat %b Last Heartbeat: = "#{RocketJob.seconds_as_duration(Time.now - worker.heartbeat.updated_at)} ago" .actions = render partial: 'actions', locals: { worker: worker } - else .row .col-md-6.col-md-offset-3 .panel.panel-default .panel-body .lead There are currently no workers. You can start a worker with the following command: .code-block %pre %code.language-bash bin/rocketjob
Version data entries
4 entries across 4 versions & 1 rubygems