X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3678eda6ea138d948919944d1b54e680ba20ea81..e20590d485505f58f7745d74a311ca539c9be940:/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 924e067815..493dd2f578 100644 --- a/apps/workbench/app/models/work_unit.rb +++ b/apps/workbench/app/models/work_unit.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class WorkUnit # This is an abstract class that documents the WorkUnit interface @@ -9,6 +13,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 @@ -115,8 +123,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 @@ -132,10 +140,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 @@ -188,6 +192,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 @@ -203,4 +211,8 @@ class WorkUnit def template_uuid # return the uuid of this work unit's template, if one exists end + + def runtime_status + # Returns this work unit's runtime_status, if any + end end