You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
multiprocessing async .get() hangs if the pool is terminated #126743
I think we need to think about @vstinner#11139 . It's clean and useful I think
I agree, but I'm thinking of something simpler: at the begining of the ApplyResult.get method, we just have to test if pool._state is terminated (or closed), and then raises a RuntimeError exception.
EDIT: This solution could trigger a data race, It's a bad idea. Sorry for the noise.
Activity
Zheaoli commentedon Nov 12, 2024
Confirmed on main branch.
I think we need to think about @vstinner #11139 . It's clean and useful I think
YvesDup commentedon Apr 29, 2025
I agree, but I'm thinking of something simpler: at the begining of the
ApplyResult.getmethod, we just have to test ifpool._stateis terminated (or closed), and then raises aRuntimeErrorexception.EDIT: This solution could trigger a data race, It's a bad idea. Sorry for the noise.
YvesDup commentedon May 12, 2025
@Zheaoli would you want to use the @vstinner #11139 old aborted proposition as a new PR ?
pythongh-126743: Fix the NEWS reference to Pool