10903: use cancel with cascade to cancel jobs and pause pipelines.
[arvados.git] / apps / workbench / app / models / job_work_unit.rb
index a3f13f388c9bff38d8f5450633b1e41d1fad338a..5b1d1b7e35b416e7ee3eb09bcad4a6d60d509b6e 100644 (file)
@@ -81,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}"