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
[3.10] gh-90622: Do not spawn ProcessPool workers on demand via fork method. (GH-91598) (#92497)
Do not spawn ProcessPool workers on demand when they spawn via fork.
This avoids potential deadlocks in the child processes due to forking from
a multithreaded process..
(cherry picked from commit ebb37fc)
Co-authored-by: Gregory P. Smith <[email protected]>
# Assertion disabled as this codepath is also used to replace a
687
+
# worker that unexpectedly dies, even when using the 'fork' start
688
+
# method. That means there is still a potential deadlock bug. If a
689
+
# 'fork' mp_context worker dies, we'll be forking a new one when
690
+
# we know a thread is running (self._executor_manager_thread).
691
+
#assert self._safe_to_dynamically_spawn_children or not self._executor_manager_thread, 'https://github.com/python/cpython/issues/90622'
0 commit comments