Oct-16-2020, 09:12 PM
(Oct-16-2020, 07:08 PM)Gribouillis Wrote: As a workaround, I suggest to useQueue.get()
with a timeout, say half a second in the sentinel thread instead of a blockingQueue.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.
I guess this is a last resort option. There still would data remain in the multiprocessing queue. My instinct tells me that somehow interrupt handlers/ asynchronous event handlers should do the trick somehow.