X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/da51b9328abab2df757ed13eadc7c3557315094b..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 9597964103..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,74 +1,28 @@ -<% content_for :css do %> - .pipeline_color_legend { - padding-left: 1em; - padding-right: 1em; - } -table.pipeline-components-table thead th { - text-align: bottom; -} -table.pipeline-components-table div.progress { - margin-bottom: 0; -} -<% end %> -
+<% if !@object.state.in? ['New', 'Ready'] %> - - - - - - - - - - - - - - <% render_pipeline_jobs.each do |pj| %> - - - - <% end %> - - - - -
- component - - progress - <%= link_to '(refresh)', request.fullpath, class: 'refresh', remote: true, method: 'get' %> - - script, version - - output -
- <% if pj[:job].andand[:uuid] %> - <%= link_to pj[:name], job_url(id: pj[:job][:uuid]) %> - <% else %> - <%= pj[:name] %> - <% end %> - - <%= pj[:progress_bar] %> - <% if pj[:job].andand[:cancelled_at] %> - cancelled - <% elsif pj[:failed] %> - failed - <% elsif pj[:result] == 'queued' %> - queued + <% pipeline_job_uuids = [] %> + +
+ Current state: <%= @object.state.sub('OnServer', '') %>  +
+ + <%= render_pipeline_components("running", :json, pipeline_job_uuids: pipeline_job_uuids) %> + + <% if @object.state.in? %w(RunningOnServer RunningOnClient Failed) %> + +

Log messages from jobs

+ <% log_history = pipeline_log_history((pipeline_job_uuids || []) + [@object.uuid]) %> +
"> + <% log_history.each do |entry| %> + <%=entry%>
<% end %> -
- <%= pj[:script] %> -
<%= pj[:script_version] %> -
- <%= link_to_if_arvados_object pj[:output] %> -
+ -<% if @object.active %> -<% content_for :js do %> -setInterval(function(){$('a.refresh').click()}, 30000); -<% end %> -<% end %> + <% end %> -
<%= JSON.pretty_generate @object.attributes %>
+<% 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.

+ + <%= render_pipeline_components("editable", :json, editable: true) %> +<% end %>