X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/415cb3b63e8cfafd4c6b92a8971a0cff74097337..730eb182b2160040a902feb09276b75a3f9c137c:/apps/workbench/app/models/container_work_unit.rb?ds=sidebyside diff --git a/apps/workbench/app/models/container_work_unit.rb b/apps/workbench/app/models/container_work_unit.rb index 42a4f4bd5b..c8af093e8f 100644 --- a/apps/workbench/app/models/container_work_unit.rb +++ b/apps/workbench/app/models/container_work_unit.rb @@ -134,13 +134,6 @@ class ContainerWorkUnit < ProxyWorkUnit [get_combined(:uuid), get(:uuid)].uniq end - def live_log_lines(limit=2000) - event_types = ["stdout", "stderr", "arv-mount", "crunch-run"] - log_lines = Log.where(event_type: event_types, object_uuid: log_object_uuids).order("id DESC").limit(limit) - log_lines.results.reverse. - flat_map { |log| log.properties[:text].split("\n") rescue [] } - end - def render_log collection = Collection.find(log_collection) rescue nil if collection