<% content_for :body do %>
<% unless notice.blank? %> <% end %>

Machine Runner

<%= link_to 'Back to Machine Runners', machine_runners_path %>

<% invocation = @machine_runner.machine_runner_invocations.last %> <% if invocation.present? && invocation.dead_at.blank? && invocation.wind_down_at.blank? -%> <% end -%>
Attribute Value
ID <%= @machine_runner.id %>
Started At <%= @machine_runner.created_at %>
Server Name <% machine = ::Logical::Naf::Machine.new(::Naf::Machine.find_by_id(@machine_runner.machine.id)) %> <%= link_to machine.name, machine_path(@machine_runner.machine) %>
Runner Cwd <%= @machine_runner.runner_cwd %>
Wind Down Runner <%= link_to image_tag('terminate.png', class: 'action', title: "Wind Down Runner(id: #{@machine_runner.machine_runner_invocations.last.id})"), "#", { class: "wind_down" } %>

Machine Runner Invocations

<% @machine_runner.machine_runner_invocations.order('created_at DESC').each do |invocation| -%> <% end -%>
Id Started At Last Seen Pid Status
<%= link_to invocation.id, machine_runner_invocation_path(invocation) %> <%= invocation.created_at %> <%= invocation.updated_at %> <%= invocation.pid %> <%= invocation.status.gsub('-', ' ').split.map(&:capitalize).join(' ') %>

<%= render partial: 'naf/log_viewer/log_layout', locals: { record_id: @machine_runner.id, record_type: 'runner' } %>
<% end %> <%= render partial: 'naf/shared/application' %> <%= render partial: 'naf/shared/auto_resize_width', locals: { div_class: '.scrollable-output' } %> <%= render partial: 'naf/log_viewer/log_display', locals: { logs_url: "#{http_protocol}#{::Logical::Naf::Machine.new(@machine_runner.machine).runner}#{naf.logs_log_parsers_path}", record_id: @machine_runner.id, record_type: 'runner' } %> <% content_for :javascripts do %> <% end %>