projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.curoverse.com:arvados into 11876-r-sdk
[arvados.git]
/
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 0c384bb209d905f0e8d3efa164c79383b0088059..f0c4230f2ad0893786bbb83d0b628ec34bd566a6 100644
(file)
--- 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
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
# 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
def children
# returns an array of child work units
end
@@
-115,6
+123,10
@@
class WorkUnit
# returns true if this work unit can be canceled
end
# returns true if this work unit can be canceled
end
+ def confirm_cancellation
+ # returns true if this work unit wants to use a confirmation for cancellation
+ end
+
def uri
# returns the uri for this work unit
end
def uri
# returns the uri for this work unit
end
@@
-180,6
+192,10
@@
class WorkUnit
# container_uuid of a container_request
end
# 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
def log_object_uuids
# object uuids for live log
end