mirror of
https://github.com/clearml/clearml
synced 2025-06-08 15:46:53 +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:
|
if file_pool:
|
||||||
try:
|
try:
|
||||||
file_pool.close()
|
file_pool.terminate()
|
||||||
file_pool.join()
|
file_pool.join()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if pool:
|
if pool:
|
||||||
try:
|
try:
|
||||||
pool.close()
|
pool.terminate()
|
||||||
pool.join()
|
pool.join()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user