+# 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
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}"
+ end
+
def title
"job"
end