X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/da5ff6947c567dfb391af544473475c029a78ece..a3222e35cda68c8e48a17921c33ac37ecb5c3bac:/apps/workbench/app/views/pipeline_instances/_show_components.html.erb diff --git a/apps/workbench/app/views/pipeline_instances/_show_components.html.erb b/apps/workbench/app/views/pipeline_instances/_show_components.html.erb index 1148bffe47..c55a7253b8 100644 --- a/apps/workbench/app/views/pipeline_instances/_show_components.html.erb +++ b/apps/workbench/app/views/pipeline_instances/_show_components.html.erb @@ -1,162 +1,28 @@ -<% content_for :css do %> - .pipeline_color_legend { - padding-left: 1em; - padding-right: 1em; - } -table.pipeline-components-table { - width: 100%; - table-layout: fixed; - overflow: hidden; -} +<% if !@object.state.in? ['New', 'Ready'] %> -table.pipeline-components-table thead th { - text-align: bottom; -} -table.pipeline-components-table div.progress { - margin-bottom: 0; -} + <% pipeline_job_uuids = [] %> -table.pipeline-components-table td { - overflow: hidden; - text-overflow: ellipsis; -} +
+ Current state: <%= @object.state.sub('OnServer', '') %>  +
-td.required { - background: #ffdddd; -} + <%= render_pipeline_components("running", :json, pipeline_job_uuids: pipeline_job_uuids) %> -<% end %> + <% if @object.state.in? %w(RunningOnServer RunningOnClient Failed) %> -<% if @object.active != nil %> - - - - - - - - - - - - - - <% render_pipeline_jobs.each do |pj| %> - - - - <% end %> - - - - -
- component - - script, version - - progress - <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %> - - output -
- <% label = if pj[:job].andand[:uuid] - if pj[:job][:running] - 'label-info' - elsif pj[:job][:success] - 'label-success' - else - 'label-danger' - end - else - 'label-default' - end %> - <% if pj[:job].andand[:uuid] %> - <%= link_to pj[:name], job_url(id: pj[:job][:uuid]), class: "label #{label}" %> - <% else %> - <%= pj[:name] %> - <% end %> - - - <%= pj[:script] %> -
<%= pj[:script_version] %> -
- <%= pj[:progress_bar] %> - <% if pj[:job].andand[:cancelled_at] %> - cancelled - <% elsif pj[:failed] %> - failed - <% elsif pj[:result] == 'queued' %> - queued +

Log messages from jobs

+ <% log_history = pipeline_log_history((pipeline_job_uuids || []) + [@object.uuid]) %> +
"> + <% log_history.each do |entry| %> + <%=entry%>
<% end %> -
- <%= link_to_if_arvados_object pj[:output] %> -
- -<% if @object.active %> -<% content_for :js do %> -setInterval(function(){$('a.refresh').click()}, 30000); -<% end %> -<% end %> - -<% else %> - - <%= form_tag @object, :method => :put do |f| %> + - <%= hidden_field @object.class.to_s.underscore.singularize.to_sym, :active, :value => true %> - <%= button_tag "Run pipeline", {class: 'btn btn-primary pull-right'} %> <% end %> - - - - - - - - - - - - - - - <% template = PipelineTemplate.find(@object.pipeline_template_uuid) %> - <% template.components.each do |k, template_value| %> - - - - - - - - - - +<% else %> + <%# state is either New or Ready %> +

Here are all of the pipeline's components (jobs that will need to run in order to complete the pipeline). If you know what you're doing (or you're experimenting) you can modify these parameters before starting the pipeline. Usually, you only need to edit the settings presented on the "Inputs" tab above.

- <% if template_value[:script_parameters].length > 0 %> - <% template_value[:script_parameters].each do |p, tv| %> - - - - - - - <% end %> - - <% end %> - <% end %> - -
- component - - script - - parameter - - value -
<%= k %><%= render_editable_subattribute @object, :components, [k, :script], template_value[:script] %>script version - <%= render_editable_subattribute @object, :components, [k, :script_version], template_value[:script_version] %> -
<%= p %><%= render_editable_subattribute @object, :components, [k, :script_parameters, p.to_sym], tv %>
- + <%= render_pipeline_components("editable", :json, editable: true) %> <% end %>