mirror of
https://github.com/clearml/clearml
synced 2025-03-03 10:42:00 +00:00
Add set_parent method to Tasks
This commit is contained in:
parent
51d564a989
commit
91fbc1cf87
@ -973,6 +973,16 @@ class Task(IdObjectBase, AccessMixin, SetupUploadMixin):
|
||||
"""
|
||||
self._set_task_property("name", str(name))
|
||||
self._edit(name=self.data.name)
|
||||
|
||||
def set_parent(self, parent):
|
||||
# type: (str) -> ()
|
||||
"""
|
||||
Set the parent task for the Task.
|
||||
:param comment: The parent task id for the Task.
|
||||
:type comment: str
|
||||
"""
|
||||
self._set_task_property("parent", str(parent))
|
||||
self._edit(parent=parent)
|
||||
|
||||
def set_comment(self, comment):
|
||||
# type: (str) -> ()
|
||||
|
Loading…
Reference in New Issue
Block a user