diff options
author | Paul Ganssle <paul@ganssle.io> | 2019-04-22 11:05:29 -0400 |
---|---|---|
committer | Paul Ganssle <paul@ganssle.io> | 2019-04-22 11:17:21 -0400 |
commit | 127c8c74dead715b67a66eed86c420fe7b31ea3b (patch) | |
tree | f174e032f84f71c475a32873f502c7af24366c01 /setuptools/tests/test_build_meta.py | |
parent | dd2240a7404a39f2f6d446697d871ba0c22be17a (diff) | |
download | external_python_setuptools-127c8c74dead715b67a66eed86c420fe7b31ea3b.tar.gz external_python_setuptools-127c8c74dead715b67a66eed86c420fe7b31ea3b.tar.bz2 external_python_setuptools-127c8c74dead715b67a66eed86c420fe7b31ea3b.zip |
Limit workers in ProcessPoolExecutor
As a mitigation for #1730, this commit limits the number of workers in
the ProcessPoolExecutor to 1 (default is the number of CPUs). On PyPy,
having a higher number of available workers dramatically increases the
number of concurrent processes, leading to some resource exhaustion
issues.
This does not address the root issue, but should improve the situation
until the root issue is addressed.
Diffstat (limited to 'setuptools/tests/test_build_meta.py')
-rw-r--r-- | setuptools/tests/test_build_meta.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/tests/test_build_meta.py b/setuptools/tests/test_build_meta.py index 90400afc..e32cfb92 100644 --- a/setuptools/tests/test_build_meta.py +++ b/setuptools/tests/test_build_meta.py @@ -28,7 +28,7 @@ class BuildBackend(BuildBackendBase): def __init__(self, *args, **kwargs): super(BuildBackend, self).__init__(*args, **kwargs) - self.pool = futures.ProcessPoolExecutor() + self.pool = futures.ProcessPoolExecutor(max_workers=1) def __getattr__(self, name): """Handles aribrary function invocations on the build backend.""" |