-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
gh-139462: Make the ProcessPoolExecutor BrokenProcessPool exception report which child process terminated #139486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 1 commit
e9c07b5
0ece422
c8fc9de
f81efde
c86be73
206dfc4
d80ebf1
a5d3266
208ea75
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -477,6 +477,15 @@ def _terminate_broken(self, cause): | |
| if cause is not None: | ||
| bpe.__cause__ = _RemoteTraceback( | ||
| f"\n'''\n{''.join(cause)}'''") | ||
| else: | ||
| # No cause known, so try to report some helpful info about | ||
| # which process(es) terminated and with what exit code | ||
| errors = [] | ||
| for p in self.processes.values(): | ||
| if p.exitcode: # Report any nonzero exit codes | ||
ZeroIntensity marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| errors.append(f"Process {p.pid} terminated abruptly with exit code {p.exitcode}") | ||
| if errors: | ||
| bpe.__cause__ = _RemoteTraceback("\n".join(errors)) | ||
|
||
|
|
||
| # Mark pending tasks as failed. | ||
| for work_id, work_item in self.pending_work_items.items(): | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.