2 # This is an abstract class that documents the WorkUnit interface
5 # returns the label that was assigned when creating the work unit
9 # returns the arvados UUID of the underlying object
13 # returns an array of child work units
16 def modified_by_user_uuid
17 # returns uuid of the user who modified this work unit most recently
21 # returns created_at timestamp
25 # returns started_at timestamp for this work unit
29 # returns finished_at timestamp
33 # returns a string representing state of the work unit
36 def state_bootstrap_class
37 # returns a class like "danger", "success", or "warning" that a view can use directly to make a display class
41 # returns true if the work unit finished successfully,
42 # false if it has a permanent failure,
43 # and nil if the final state is not determined.
47 # returns a number between 0 and 1
51 # returns uuid or pdh with saved log data, if any
55 # returns work unit parameters, if any
59 # returns script for this work unit, if any
63 # returns this work unit's script repository, if any
67 # returns this work unit's script_version, if any
70 def supplied_script_version
71 # returns this work unit's supplied_script_version, if any
75 # returns this work unit's docker_image, if any
78 def runtime_constraints
79 # returns this work unit's runtime_constraints, if any
83 # returns this work unit's priority, if any
87 # returns if this is nondeterministic
91 # returns uuid or pdh of output data, if any
95 # returns array containing uuid or pdh of output data of all children
96 # if no children, return output data if any
100 # summary status of any children of this work unit
103 def child_summary_str
104 # textual representation of child summary
108 # returns true if this work unit can be canceled
112 # is the proxied object readable by current user?
116 # returns the uri for this work unit
120 # title for the work unit
123 def has_unreadable_children
124 # accept it if you can't understand your own children
127 # view helper methods
129 # display a link to log if present
133 # return walltime for a running or completed work unit
137 # return cputime for a running or completed work unit
141 # return queued time if the work unit is queued
145 # is the work unit in running state?
149 # is the work unit in paused state?
153 # is the work unit in finished state?
157 # is this work unit in failed state?