1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 class JobWorkUnit < ProxyWorkUnit
7 return @my_children if @my_children
11 components = get(:components)
12 uuids = components.andand.collect {|_, v| v}
13 return items if (!uuids or uuids.empty?)
17 r = ArvadosBase::resource_class_for_uuid(u)
18 rcs[r] = [] unless rcs[r]
22 rc.where(uuid: ids).each do |obj|
23 items << obj.work_unit(components.key(obj.uuid))
39 get(:script_parameters)
54 def supplied_script_version
55 get(:supplied_script_version)
59 get(:docker_image_locator)
63 get(:nondeterministic)
66 def runtime_constraints
67 get(:runtime_constraints)
80 items << get(:output) if get(:output)
85 state_label.in? ["Queued", "Running"]
88 def confirm_cancellation
89 "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?"