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 modified_at timestamp
29 # returns started_at timestamp for this work unit
33 # returns finished_at timestamp
37 # returns a string representing state of the work unit
40 def state_bootstrap_class
41 # returns a class like "danger", "success", or "warning" that a view can use directly to make a display class
45 # returns true if the work unit finished successfully,
46 # false if it has a permanent failure,
47 # and nil if the final state is not determined.
51 # returns a number between 0 and 1
55 # returns uuid or pdh with saved log data, if any
59 # returns work unit parameters, if any
63 # returns script for this work unit, if any
67 # returns this work unit's script repository, if any
71 # returns this work unit's script_version, if any
74 def supplied_script_version
75 # returns this work unit's supplied_script_version, if any
79 # returns this work unit's docker_image, if any
82 def runtime_constraints
83 # returns this work unit's runtime_constraints, if any
87 # returns this work unit's priority, if any
91 # returns if this is nondeterministic
95 # returns array containing uuid or pdh of output data
99 # summary status of any children of this work unit
102 def child_summary_str
103 # textual representation of child summary
107 # returns true if this work unit can be canceled
111 # is the proxied object readable by current user?
115 # returns the uri for this work unit
119 # title for the work unit
122 def has_unreadable_children
123 # accept it if you can't understand your own children
126 # view helper methods
128 # display a link to log if present
132 # return walltime for a running or completed work unit
136 # return cputime for a running or completed work unit
140 # return queued time if the work unit is queued
144 # is the work unit in running state?
148 # is the work unit in paused state?
152 # is the work unit in finished state?
156 # is this work unit in failed state?