X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/370df5a95b6b143885fa4d96be90c51f25f8ad14..1ab33aed37fdcd448fe224375951089282901c48:/apps/workbench/app/views/pipeline_instances/_show_log.html.erb diff --git a/apps/workbench/app/views/pipeline_instances/_show_log.html.erb b/apps/workbench/app/views/pipeline_instances/_show_log.html.erb index bb756a0827..24937ba0fd 100644 --- a/apps/workbench/app/views/pipeline_instances/_show_log.html.erb +++ b/apps/workbench/app/views/pipeline_instances/_show_log.html.erb @@ -1,12 +1,49 @@ -<% log_uuids = [@object.uuid] + pipeline_jobs(@object).collect{|x|x[:job].andand[:uuid]}.compact %> -<% log_history = stderr_log_history(log_uuids) %> -
<%= log_history.join("\n") %>
- -<%# Applying a long throttle suppresses the auto-refresh of this - partial that would normally be triggered by arv-log-event. %> -
- >
+<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> + +<% log_ids = @object.job_log_ids + job_ids = @object.job_ids + still_logging, done_logging = log_ids.keys.partition { |k| log_ids[k].nil? } +%> + +<% unless done_logging.empty? %> + + + + + + + + + + + + + <% done_logging.each do |cname| %> + + + + + <% end %> + +
finished componentjob log
<%= cname %><%= link_to("Log for #{cname}", + job_path(job_ids[cname], anchor: "Log")) + %>
+<% end %> + +<% unless still_logging.empty? %> +

Logs in progress

+ +
<%= @object.stderr_log_lines.join("\n") %>
+ + <%# Applying a long throttle suppresses the auto-refresh of this + partial that would normally be triggered by arv-log-event. %> +
+ >
+<% end %> +