2 # This is just an abstract class that documents the WorkUnit interface; a
3 # class can implement the interface without being a subclass of WorkUnit.
6 # returns the label that was assigned when creating the work unit
10 # returns the arvados UUID of the underlying object
14 # returns an array of child work units
17 def modified_by_user_uuid
18 # returns uuid of the user who modified this work unit most recently
22 # returns created_at timestamp
26 # returns started_at timestamp for this work unit
30 # returns finished_at timestamp
34 # returns a string representing state of the work unit
37 def state_bootstrap_class
38 # returns a class like "danger", "success", or "warning" that a view can use directly to make a display class
42 # returnis true if the work unit finished successfully,
43 # false if it has a permanent failure,
44 # and nil if the final state is not determined.
48 # returns a number between 0 and 1
52 # returns uuid or pdh with saved log data, if any
56 # returns work unit parameters, if any
60 # returns script for this work unit, if any
64 # returns this work unit's script repository, if any
68 # returns this work unit's script_version, if any
71 def supplied_script_version
72 # returns this work unit's supplied_script_version, if any
76 # returns this work unit's docker_image, if any
79 def runtime_constraints
80 # returns this work unit's runtime_constraints, if any
84 # returns this work unit's priority, if any
88 # returns if this is nondeterministic
92 # returns uuid or pdh of output data, if any
96 # returns if this work unit is cancelable
100 # returns the uri for this work unit
104 # summary status of any children of this work unit
108 # title for the work unit
111 def has_unreadable_children
112 # accept it if you can't understand your own children