From b5c3477f066469523d6e86e6b8cc805e9edda7fa Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Thu, 12 May 2022 23:49:09 +0300 Subject: [PATCH] Fix Process Pool hangs at exit (#674) --- clearml/task.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clearml/task.py b/clearml/task.py index 47e4d56c..77b98647 100644 --- a/clearml/task.py +++ b/clearml/task.py @@ -2058,7 +2058,6 @@ class Task(_Task): """ Get user properties for this task. Returns a dictionary mapping user property name to user property details dict. - :param value_only: If True, returned user property details will be a string representing the property value. """ if not Session.check_min_api_version("2.9"): @@ -3482,6 +3481,7 @@ class Task(_Task): elif task_status[0] == 'failed': self.mark_failed(status_reason=task_status[1]) elif task_status[0] == 'completed': + self.set_progress(100) self.mark_completed() elif task_status[0] == 'stopped': self.stopped() @@ -3519,9 +3519,6 @@ class Task(_Task): pass self._edit_lock = None - if task_status and task_status[0] == "completed": - self.set_progress(100) - # make sure no one will re-enter the shutdown method self._at_exit_called = True if not is_sub_process and BackgroundMonitor.is_subprocess_enabled():