From 0cb72a7adb3ecbbb6abaab63c70c5707038c20b8 Mon Sep 17 00:00:00 2001 From: Mal Miller <59854849+mmiller-max@users.noreply.github.com> Date: Mon, 8 Aug 2022 15:10:43 +0100 Subject: [PATCH] Update Task.init() docstring to include behaviour when executing remotely (#737) * Update Task.init() docstring to include behaviour when executing remotely --- clearml/task.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clearml/task.py b/clearml/task.py index 3f4da773..8aeb5076 100644 --- a/clearml/task.py +++ b/clearml/task.py @@ -235,7 +235,8 @@ class Task(_Task): artifacts, or (b) its status is Published , or (c) it is Archived. - A new Task is forced by calling ``Task.init`` with ``reuse_last_task_id=False``. - Otherwise, the already initialized Task object for the same ``task_name`` and ``project_name`` is returned. + Otherwise, the already initialized Task object for the same ``task_name`` and ``project_name`` is returned, + or, when being executed remotely on a clearml-agent, the task returned is the existing task from the backend. .. note:: To reference another Task, instead of initializing the same Task more than once, call