Merge branch '8876-work-unit' into 8650-container-work-unit
[arvados.git] / apps / workbench / app / models / work_unit.rb
index 7439128ed7e00257e78c9bc4c79b33584024e8cd..b83847ea928c0864ae6ca0d8ac8a6fc842f082c4 100644 (file)
@@ -95,6 +95,10 @@ class WorkUnit
     # summary status of any children of this work unit
   end
 
+  def child_summary_str
+    # textual representation of child summary
+  end
+
   def can_cancel?
     # returns true if this work unit can be canceled
   end
@@ -114,4 +118,49 @@ class WorkUnit
   def has_unreadable_children
     # accept it if you can't understand your own children
   end
+
+  # view helper methods
+  def link_to_log
+    # display a link to log if present
+  end
+
+  def walltime
+    # return walltime for a running or completed work unit
+  end
+
+  def cputime
+    # return cputime for a running or completed work unit
+  end
+
+  def queuedtime
+    # 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
+
+  def is_paused?
+    # is the work unit in paused state?
+  end
+
+  def is_finished?
+    # is the work unit in finished state?
+  end
+
+  def is_failed?
+    # is this work unit in failed state?
+  end
+
+  def ran_for_str
+    # display string for how long it has run
+  end
+
+  def started_and_active_for_str
+    # display string for how long it has been active
+  end
 end