mirror of
https://github.com/clearml/clearml
synced 2025-05-28 00:58:04 +00:00
ThreadPool should be terminated, not closed, otherwise it might hang
This commit is contained in:
parent
070fd8149a
commit
e1fc9b3dc8
@ -222,14 +222,14 @@ class Metrics(InterfaceBase):
|
||||
|
||||
if file_pool:
|
||||
try:
|
||||
file_pool.close()
|
||||
file_pool.terminate()
|
||||
file_pool.join()
|
||||
except:
|
||||
pass
|
||||
|
||||
if pool:
|
||||
try:
|
||||
pool.close()
|
||||
pool.terminate()
|
||||
pool.join()
|
||||
except:
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user