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
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}"