mirror of
https://github.com/clearml/clearml
synced 2025-02-07 13:23:40 +00:00
Merge pull request #144 from H4dr1en/patch-2
Add set_parent method to Tasks
This commit is contained in:
commit
0743fa47f7
@ -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