@@ -20,7+20,35 @@ class JobWorkUnit < ProxyWorkUnit
end
end
end
end
- self.my_children = items
+ @my_children = items
+ end
+
+ def child_summary
+ if children.any?
+ super
+ else
+ get(:tasks_summary)
+ end
+ end
+
+ def parameters
+ get(:script_parameters)
+ end
+
+ def repository
+ get(:repository)
+ end
+
+ def script
+ get(:script)
+ end
+
+ def script_version
+ get(:script_version)
+ end
+
+ def supplied_script_version
+ get(:supplied_script_version)
end
def docker_image
end
def docker_image
@@ -31,6+59,10 @@ class JobWorkUnit < ProxyWorkUnit
get(:nondeterministic)
end
get(:nondeterministic)
end
+ def runtime_constraints
+ get(:runtime_constraints)
+ end
+
def priority
get(:priority)
end
def priority
get(:priority)
end
@@ -39,20+71,18 @@ class JobWorkUnit < ProxyWorkUnit
get(:log)
end
get(:log)
end
- def output
- get(:output)
+ def outputs
+ items = []
+ items << get(:output) if get(:output)
+ items
end
end
- def child_summary
- if children.any?
- super
- else
- get(:tasks_summary)
- end
+ def can_cancel?
+ state_label.in? ["Queued", "Running"]
end
end
- def can_cancel?
- true
+ 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?"