mirror of
https://github.com/clearml/clearml
synced 2025-04-08 06:34:37 +00:00
Fix Process Pool hangs at exit (#674)
This commit is contained in:
parent
5dff9dd404
commit
b5c3477f06
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user