Oct-17-2020, 06:04 AM
There are still things to try. You could call
queue.close()
and queue.join_thread()
in the worker process when it receives the instruction to stop. This would wait until every data previously sent to the queue has been written in the underlying pipe. Also it would raise an exception if the run() function still tries to put() anything else in the queue.