gh-115634: Fix ProcessPoolExecutor deadlock with max_tasks_per_child by gpshead · Pull Request #140900 · python/cpython · GitHub

github.com

Tin mới

gpshead:fix-gh-115634-process-pool-hang

read-the-docs-community

miss-islington-app

GitHub CopilotWrite better code with AI

GitHub Copilot appDirect agents from issue to merge

ActionsAutomate any workflow

CodespacesInstant dev environments

IssuesPlan and track work

Code ReviewManage code changes

Code QualityEnforce quality at merge

GitHub Advanced SecurityFind and fix vulnerabilities

Code securitySecure your code as you build

Secret protectionStop leaks before they start

View all use cases

Financial services

View all industries

Software Development

GitHub SponsorsFund open source developers

Copilot for BusinessEnterprise-grade AI features

Premium SupportEnterprise-grade 24/7 support

Pull requests 2.6k

Security and quality 0

ProcessPoolExecutor hangs when 1<max_tasks_per_child<num_submitted//max_workers #115634

gh-115634: Force the process pool to adjust when a process worker exits #115642

ProcessPoolExecutor executor manager thread crashes if task fails in some circumstances #119592

ProcessPoolExecutor.map may hang forever when the submitted iterable is far greater than max_tasks_per_child #111498

Add options for max diffs before restarting process edgi-govdata-archiving/web-monitoring-diff#202

github-actions Bot commented May 1, 2026

github-actions Bot commented May 1, 2026

This PR is stale because it has been open for 30 days with no activity.

: Fix ProcessPoolExecutor deadlock with max_tasks_per_…

needs backport to 3.13

needs backport to 3.13

needs backport to 3.14

needs backport to 3.14

needs backport to 3.15

needs backport to 3.15

awaiting core review

awaiting core review

bedevere-app Bot commented Jul 3, 2026

bedevere-app Bot commented Jul 3, 2026

GH-152926 is a backport of this pull request to the 3.15 branch.

: Fix ProcessPoolExecutor deadlock with max_tasks_per…

: Fix ProcessPoolExecutor deadlock with max_tasks_per…

: Fix ProcessPoolExecutor deadlock with max_tasks_per…

ProcessPoolExecutor: pending futures never complete if executor is gc'd while a max_tasks_per_child= worker exits #152967