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 uuid of the owner of this work unit
25 # returns created_at timestamp
29 # returns modified_at timestamp
33 # returns started_at timestamp for this work unit
37 # returns finished_at timestamp
41 # returns a string representing state of the work unit
45 # returns the work unit's execution exit code
48 def state_bootstrap_class
49 # returns a class like "danger", "success", or "warning" that a view can use directly to make a display class
53 # returns true if the work unit finished successfully,
54 # false if it has a permanent failure,
55 # and nil if the final state is not determined.
59 # returns a number between 0 and 1
63 # returns uuid or pdh with saved log data, if any
67 # returns work unit parameters, if any
71 # returns script for this work unit, if any
75 # returns this work unit's script repository, if any
79 # returns this work unit's script_version, if any
82 def supplied_script_version
83 # returns this work unit's supplied_script_version, if any
87 # returns this work unit's docker_image, if any
90 def runtime_constraints
91 # returns this work unit's runtime_constraints, if any
95 # returns this work unit's priority, if any
99 # returns if this is nondeterministic
103 # returns array containing uuid or pdh of output data
107 # summary status of any children of this work unit
110 def child_summary_str
111 # textual representation of child summary
115 # returns true if this work unit can be canceled
119 # is the proxied object readable by current user?
123 # returns the uri for this work unit
127 # title for the work unit
130 def has_unreadable_children
131 # accept it if you can't understand your own children
134 # view helper methods
136 # display a link to log if present
140 # return walltime for a running or completed work unit
144 # return cputime for a running or completed work unit
148 # return queued time if the work unit is queued
152 # is the work unit in running state?
156 # is the work unit in paused state?
160 # is the work unit in finished state?
164 # is this work unit in failed state?
172 # initial workind directory
176 # environment variables
184 # path to a directory or file to save output
188 # container_uuid of a container_request
192 # object uuids for live log
195 def live_log_lines(limit)
196 # fetch log entries from logs table for @proxied
200 # return partial and locals to be rendered
204 # return the uuid of this work unit's template, if one exists