hack to stop ThreadPoolExecutor blocking exit
This commit is contained in:
parent
bdf2bd35a7
commit
384dadc5ed
|
@ -414,3 +414,9 @@ class Application:
|
||||||
except:
|
except:
|
||||||
log.exception("Exception in controller.run():")
|
log.exception("Exception in controller.run():")
|
||||||
raise
|
raise
|
||||||
|
finally:
|
||||||
|
# concurrent.futures.ThreadPoolExecutor tries to join all
|
||||||
|
# threads before exiting. We don't want that and this
|
||||||
|
# ghastly hack prevents it.
|
||||||
|
from concurrent.futures import thread
|
||||||
|
thread._threads_queues = {}
|
||||||
|
|
Loading…
Reference in New Issue