mirror of
https://github.com/clearml/clearml
synced 2025-04-03 12:31:11 +00:00
ThreadPool should be terminated, not closed, otherwise it might hang
This commit is contained in:
parent
9916c93ce0
commit
004f925454
@ -10,7 +10,7 @@ from ...backend_api.services import events as api_events
|
||||
from ..base import InterfaceBase
|
||||
from ...config import config
|
||||
from ...debugging import get_logger
|
||||
from ...storage import StorageHelper
|
||||
from ...storage.helper import StorageHelper
|
||||
|
||||
from .events import MetricsEventAdapter
|
||||
|
||||
|
@ -964,7 +964,7 @@ class StorageHelper(object):
|
||||
pool = StorageHelper._upload_pool
|
||||
StorageHelper._upload_pool = None
|
||||
try:
|
||||
pool.close()
|
||||
pool.terminate()
|
||||
pool.join()
|
||||
except:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user