X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/415cb3b63e8cfafd4c6b92a8971a0cff74097337..9429158c8ecf253a700c7eb4f87ad142a8e1522c:/apps/workbench/app/views/work_units/_show_component.html.erb?ds=sidebyside diff --git a/apps/workbench/app/views/work_units/_show_component.html.erb b/apps/workbench/app/views/work_units/_show_component.html.erb index f40170a820..4cce090a22 100644 --- a/apps/workbench/app/views/work_units/_show_component.html.erb +++ b/apps/workbench/app/views/work_units/_show_component.html.erb @@ -1,77 +1,100 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + <%# Work unit status %> -
+ This <%= wu.title %> is paused. Children that were running + were cancelled and no new processes will be submitted. +
<% end %> -- This <%= wu.title %> is paused. Children that are already running - will continue to run, but no new processes will be submitted. -
+ <%= raw(wu.show_runtime) %> +<%= h(wu.runtime_status[:errorDetail]) %>+ <% else %> + No detailed information available. + <% end %> +
<%= h(wu.runtime_status[:warningDetail]) %>+ <% else %> + No detailed information available. + <% end %> +
<%= render(partial: 'work_units/component_detail', locals: {current_obj: wu}) %>
<%# Work unit children %> - -<% - uuids = wu.children.collect {|c| c.uuid}.compact - if uuids.any? - resource_class = resource_class_for_uuid(uuids.first, friendly_name: true) - preload_objects_for_dataclass resource_class, uuids - end - - collections = wu.children.collect {|j| j.outputs}.compact - collections = collections.flatten.uniq - collections.concat wu.children.collect {|j| j.docker_image}.uniq.compact - collections_pdhs = collections.select {|x| !(m = CollectionsHelper.match(x)).nil?}.uniq.compact - collections_uuids = collections - collections_pdhs - preload_collections_for_objects collections_uuids if collections_uuids.any? - preload_for_pdhs collections_pdhs if collections_pdhs.any? -%> - <% if wu.has_unreadable_children %> <%= render(partial: "pipeline_instances/show_components_json", locals: {error_name: "Unreadable components", backtrace: nil, wu: wu}) %> <% else %> - <% @descendent_count = 0 if !@descendent_count %> <% wu.children.each do |c| %> - <% @descendent_count += 1 %> - <%= render(partial: 'work_units/show_child', locals: {current_obj: c, i: @descendent_count, expanded: false}) %> + <%= render(partial: 'work_units/show_child', locals: {current_obj: c, i: (c.uuid || rand(2**128).to_s(36)), expanded: false}) %> <% end %> <% end %>