mirror of
https://github.com/clearml/clearml
synced 2025-03-03 18:52:12 +00:00
Add Dataset create set parent current Task
This commit is contained in:
parent
6d09ff1518
commit
597a7ed05e
@ -101,6 +101,9 @@ class Dataset(object):
|
||||
# if the task is running make sure we ping to the server so it will not be aborted by a watchdog
|
||||
self._task_pinger = DevWorker()
|
||||
self._task_pinger.register(task, stop_signal_support=False)
|
||||
# set the newly created Dataset parent ot the current Task, so we know who created it.
|
||||
if Task.current_task() and Task.current_task().id != task.id:
|
||||
task.set_parent(Task.current_task())
|
||||
|
||||
# store current dataset Task
|
||||
self._task = task
|
||||
|
Loading…
Reference in New Issue
Block a user