Oct-16-2020, 07:08 PM
As a workaround, I suggest to use
Queue.get()
with a timeout, say half a second in the sentinel thread instead of a blocking Queue.get()
and check if the worker process is still running when the timeout occurs. This gives the sentinel thread an option to exit instead of waiting for queue events when the worker thread is already dead.