mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Fix reusing Task did not reset it
This commit is contained in:
parent
9c79e557d0
commit
b94f345d2b
@ -863,7 +863,8 @@ class Task(_Task):
|
|||||||
# type: (...) -> Union[List[str], List[Dict[str, str]]]
|
# type: (...) -> Union[List[str], List[Dict[str, str]]]
|
||||||
"""
|
"""
|
||||||
Get a list of Tasks ID matching the specific query/filter.
|
Get a list of Tasks ID matching the specific query/filter.
|
||||||
Notice, if `return_fields` is specified, returns a list of dictionaries with requested fields (dict per Task)
|
Notice, if `additional_return_fields` is specified, returns a list of
|
||||||
|
dictionaries with requested fields (dict per Task)
|
||||||
|
|
||||||
:param str project_name: The project name of the Tasks to get. To get the experiment
|
:param str project_name: The project name of the Tasks to get. To get the experiment
|
||||||
in all projects, use the default value of ``None``. (Optional)
|
in all projects, use the default value of ``None``. (Optional)
|
||||||
@ -2706,7 +2707,9 @@ class Task(_Task):
|
|||||||
)
|
)
|
||||||
|
|
||||||
# instead of resting the previously used task we are continuing the training with it.
|
# instead of resting the previously used task we are continuing the training with it.
|
||||||
if task and (continue_last_task or isinstance(continue_last_task, int)):
|
if task and \
|
||||||
|
(continue_last_task or
|
||||||
|
(isinstance(continue_last_task, int) and not isinstance(continue_last_task, bool))):
|
||||||
task.reload()
|
task.reload()
|
||||||
task.mark_started(force=True)
|
task.mark_started(force=True)
|
||||||
# allow to disable the
|
# allow to disable the
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user