X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e016b28393b74cd30a78ebe03eca7e37a51fefd3..2b2c23bf8e997735dbf6c493b168ee3a3ff52be5:/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 4391809911..5b1d1b7e35 100644 --- a/apps/workbench/app/models/job_work_unit.rb +++ b/apps/workbench/app/models/job_work_unit.rb @@ -73,12 +73,7 @@ class JobWorkUnit < ProxyWorkUnit def outputs items = [] - children.each do |c| - items.concat c.outputs - end - if !items.any? - items << get(:output) if get(:output) - end + items << get(:output) if get(:output) items end @@ -86,6 +81,10 @@ class JobWorkUnit < ProxyWorkUnit 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}"