X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/d4a9835195f1c87d6d3436050d55bc60ba031259..d121e087ad1b4e91f869dbd57534c6d6ce51d19d:/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 0d194b88a5..37554469c3 100644 --- a/apps/workbench/app/models/work_unit.rb +++ b/apps/workbench/app/models/work_unit.rb @@ -9,6 +9,10 @@ class WorkUnit # returns the arvados UUID of the underlying object end + def parent + # returns the parent uuid of this work unit + end + def children # returns an array of child work units end @@ -41,6 +45,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 @@ -111,8 +119,8 @@ class WorkUnit # returns true if this work unit can be canceled end - def readable? - # is the proxied object readable by current user? + def confirm_cancellation + # returns true if this work unit wants to use a confirmation for cancellation end def uri @@ -128,10 +136,6 @@ class WorkUnit end # view helper methods - def link_to_log - # display a link to log if present - end - def walltime # return walltime for a running or completed work unit end @@ -184,6 +188,10 @@ class WorkUnit # container_uuid of a container_request end + def requesting_container_uuid + # requesting_container_uuid of a container_request + end + def log_object_uuids # object uuids for live log end @@ -195,4 +203,8 @@ class WorkUnit def render_log # return partial and locals to be rendered end + + def template_uuid + # return the uuid of this work unit's template, if one exists + end end