9767: create a pipeline instance or container request depending on the template selected.
[arvados.git] / apps / workbench / app / models / work_unit.rb
index a605ee8db1104715fc6cca176f80c355dccc5397..7373bc242353b99c43f3cd73708e1ce9c7235599 100644 (file)
@@ -17,10 +17,18 @@ class WorkUnit
     # returns uuid of the user who modified this work unit most recently
   end
 
+  def owner_uuid
+    # returns uuid of the owner of this work unit
+  end
+
   def created_at
     # returns created_at timestamp
   end
 
+  def modified_at
+    # returns modified_at timestamp
+  end
+
   def started_at
     # returns started_at timestamp for this work unit
   end
@@ -87,13 +95,8 @@ class WorkUnit
     # returns if this is nondeterministic
   end
 
-  def output
-    # returns uuid or pdh of output data, if any
-  end
-
   def outputs
-    # returns array containing uuid or pdh of output data of all children
-    # if no children, return output data if any
+    # returns array containing uuid or pdh of output data
   end
 
   def child_summary
@@ -141,10 +144,6 @@ class WorkUnit
     # return queued time if the work unit is queued
   end
 
-  def show_child_summary
-    # child summary for a running work unit
-  end
-
   def is_running?
     # is the work unit in running state?
   end
@@ -161,15 +160,43 @@ class WorkUnit
     # is this work unit in failed state?
   end
 
-  def can_be_canceled?
-    # true if work unit is in queued or running states and supports can_cancel?
+  def command
+    # command to execute
+  end
+
+  def cwd
+    # initial workind directory
+  end
+
+  def environment
+    # environment variables
+  end
+
+  def mounts
+    # mounts
+  end
+
+  def output_path
+    # path to a directory or file to save output
+  end
+
+  def container_uuid
+    # container_uuid of a container_request
+  end
+
+  def log_object_uuids
+    # object uuids for live log
+  end
+
+  def live_log_lines(limit)
+    # fetch log entries from logs table for @proxied
   end
 
-  def ran_for_str
-    # display string for how long it has run
+  def render_log
+    # return partial and locals to be rendered
   end
 
-  def started_and_active_for_str
-    # display string for how long it has been active
+  def template_uuid
+    # return the uuid of this work unit's template, if one exists
   end
 end