Propose solution for https://bugs.python.org/issue47249

Hi ,
I would like to propose a solution for the issue, Issue 47249: test_multiprocessing_fork probabilistic failure - Python tracker, I think adding time.sleep(0) in multiprocessing pool.py file in worker handler, task handler and result handler functions should solve this issue(as the three coordinate with threads), but I don’t know whether that would be feasible or not. PS I don’t know how to suggest the fixes formally to python devs.

Maybe here: test_multiprocessing_fork probabilistic failure · Issue #91405 · python/cpython · GitHub

1 Like

thank you, @sinoroc.

The exact names of functions in pool.py file are _handle_workers, _handle_tasks and _handle_results.