X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a95f899d7ac84f29b3d019aa410d265bb40833e5..0110ce93702def9a641d92d90d5544d4d0adf22b:/apps/workbench/app/models/job_work_unit.rb diff --git a/apps/workbench/app/models/job_work_unit.rb b/apps/workbench/app/models/job_work_unit.rb index a0a7c8796e..83825a5338 100644 --- a/apps/workbench/app/models/job_work_unit.rb +++ b/apps/workbench/app/models/job_work_unit.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class JobWorkUnit < ProxyWorkUnit def children return @my_children if @my_children @@ -71,14 +75,20 @@ class JobWorkUnit < ProxyWorkUnit get(:log) end - def output - get(:output) + def outputs + items = [] + items << get(:output) if get(:output) + items end def can_cancel? state_label.in? ["Queued", "Running"] end + def confirm_cancellation + "All unfinished child jobs and pipelines will also be canceled, even if they are being used in another job or pipeline. Are you sure you want to cancel this job?" + end + def uri uuid = get(:uuid) "/jobs/#{uuid}"