FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-26903: Limit ProcessPoolExecutor to 61 workers on Windows by brianquinlan · Pull Request #13132 · python/cpython · GitHub

Repository navigation

bpo-26903: Limit ProcessPoolExecutor to 61 workers on Windows - #13132

Merged
zooba merged 3 commits into
python:masterfrom
brianquinlan:issue26903
May 8, 2019
Merged

zooba merged 3 commits into
python:masterfrom
brianquinlan:issue26903

Conversation

brianquinlan commented May 6, 2019 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Comment thread Lib/test/test_concurrent_futures.py Outdated
Co-Authored-By: brianquinlan <brian@sweetapp.com>
raise ValueError("max_workers must be greater than 0")
elif (sys.platform == 'win32' and
max_workers > _MAX_WINDOWS_WORKERS):
raise ValueError(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Should we consider automatically changing max_workers to 61 instead? That would make for a nicer API for people using max_workers=os.cpu_count(), and it would make code like what was in Black before https://github.com/python/black/pull/838/files work unchanged.

On the other hand, it may be unexpected that we silently use fewer workers than the user asked for.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I thought silently using fewer processes could be surprising. I also think that it's pretty unusual in the standard library to silently fix bad argument values.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I like raising when too many workers are requested, and doing it quietly when it was "automatic".

zooba merged commit 3988986 into python:master May 8, 2019

Copy link
Copy Markdown
Contributor

Thanks @brianquinlan for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

zooba commented May 8, 2019

Copy link
Copy Markdown
Member

Thanks, Brian!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 8, 2019
…GH-13132)

Co-Authored-By: brianquinlan <brian@sweetapp.com>
(cherry picked from commit 3988986)

Co-authored-by: Brian Quinlan <brian@sweetapp.com>

Copy link
Copy Markdown

GH-13206 is a backport of this pull request to the 3.7 branch.

Copy link
Copy Markdown
Contributor

Thanks @brianquinlan for the PR, and @zooba for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 29, 2019
…GH-13132)

Co-Authored-By: brianquinlan <brian@sweetapp.com>
(cherry picked from commit 3988986)

Co-authored-by: Brian Quinlan <brian@sweetapp.com>

Copy link
Copy Markdown

GH-13643 is a backport of this pull request to the 3.7 branch.

ned-deily pushed a commit that referenced this pull request May 29, 2019
…) (GH-13643)

Co-Authored-By: brianquinlan <brian@sweetapp.com>
(cherry picked from commit 3988986)

Co-authored-by: Brian Quinlan <brian@sweetapp.com>
mingwandroid pushed a commit to mingwandroid/cpython that referenced this pull request Sep 3, 2020
…GH-13132) (pythonGH-13643)

Co-Authored-By: brianquinlan <brian@sweetapp.com>
(cherry picked from commit 3988986)

Co-authored-by: Brian Quinlan <brian@sweetapp.com>
sbc100 added a commit to emscripten-core/emscripten that referenced this pull request Sep 20, 2022
This mirrors the upstream bugfix in python 3.8.0 which limits the
size of the worker pool to 61: python/cpython#13132

Fixes: #13785
sbc100 added a commit to emscripten-core/emscripten that referenced this pull request Sep 20, 2022
This mirrors the upstream bugfix in python 3.8.0 which limits the
size of the worker pool to 61: python/cpython#13132

Fixes: #13785
sbc100 added a commit to emscripten-core/emscripten that referenced this pull request Sep 20, 2022
This mirrors the upstream bugfix in python 3.8.0 which limits the
size of the worker pool to 61: python/cpython#13132

Fixes: #13785
sbc100 added a commit to emscripten-core/emscripten that referenced this pull request Sep 20, 2022
This mirrors the upstream bugfix in python 3.8.0 which limits the
size of the worker pool to 61: python/cpython#13132

Fixes: #13785
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants


Back | FazBrowse Home | New Git URL