15529: LoginCluster uses ApiClientAuthorization.remote_host
[arvados.git] / apps / workbench / app / models / work_unit.rb
index dd4a706f9d6edfdbaf60b7607e62d3f40a672fe2..493dd2f578a213afcd348fb0a2a1cca035592c03 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 class WorkUnit
   # This is an abstract class that documents the WorkUnit interface
 
@@ -119,6 +123,10 @@ class WorkUnit
     # returns true if this work unit can be canceled
   end
 
+  def confirm_cancellation
+    # returns true if this work unit wants to use a confirmation for cancellation
+  end
+
   def uri
     # returns the uri for this work unit
   end
@@ -184,6 +192,10 @@ class WorkUnit
     # container_uuid of a container_request
   end
 
+  def requesting_container_uuid
+    # requesting_container_uuid of a container_request
+  end
+
   def log_object_uuids
     # object uuids for live log
   end
@@ -199,4 +211,8 @@ class WorkUnit
   def template_uuid
     # return the uuid of this work unit's template, if one exists
   end
+
+  def runtime_status
+    # Returns this work unit's runtime_status, if any
+  end
 end