X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/2cd1c3ed705e639fb9e4ef067a32b278a6d3d4ee..a3b87eea221b1c169fd1e953c8263e63646a2da1:/apps/workbench/app/models/work_unit.rb diff --git a/apps/workbench/app/models/work_unit.rb b/apps/workbench/app/models/work_unit.rb index 5bac42ba2f..ce55bb3c17 100644 --- a/apps/workbench/app/models/work_unit.rb +++ b/apps/workbench/app/models/work_unit.rb @@ -17,6 +17,10 @@ class WorkUnit # returns uuid of the user who modified this work unit most recently end + def owner_uuid + # returns uuid of the owner of this work unit + end + def created_at # returns created_at timestamp end @@ -37,6 +41,10 @@ class WorkUnit # returns a string representing state of the work unit end + def exit_code + # returns the work unit's execution exit code + end + def state_bootstrap_class # returns a class like "danger", "success", or "warning" that a view can use directly to make a display class end @@ -155,4 +163,40 @@ class WorkUnit def is_failed? # is this work unit in failed state? end + + def command + # command to execute + end + + def cwd + # initial workind directory + end + + def environment + # environment variables + end + + def mounts + # mounts + end + + def output_path + # path to a directory or file to save output + end + + def container_uuid + # container_uuid of a container_request + end + + def log_object_uuids + # object uuids for live log + end + + def live_log_lines(limit) + # fetch log entries from logs table for @proxied + end + + def render_log + # return partial and locals to be rendered + end end