summaryrefslogtreecommitdiffstats
path: root/Doc/library/concurrent.futures.rst
diff options
context:
space:
mode:
authorBrian Quinlan <brian@sweetapp.com>2019-05-08 18:04:53 (GMT)
committerSteve Dower <steve.dower@python.org>2019-05-08 18:04:53 (GMT)
commit39889864c09741909da4ec489459d0197ea8f1fc (patch)
tree08f7745e5ca5554a14f6b583a4ee8d345d3fe4b7 /Doc/library/concurrent.futures.rst
parentb9b08cd948de97d756a199b60becce8397a8c882 (diff)
downloadcpython-39889864c09741909da4ec489459d0197ea8f1fc.zip
cpython-39889864c09741909da4ec489459d0197ea8f1fc.tar.gz
cpython-39889864c09741909da4ec489459d0197ea8f1fc.tar.bz2
bpo-26903: Limit ProcessPoolExecutor to 61 workers on Windows (GH-13132)
Co-Authored-By: brianquinlan <brian@sweetapp.com>
Diffstat (limited to 'Doc/library/concurrent.futures.rst')
-rw-r--r--Doc/library/concurrent.futures.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/concurrent.futures.rst b/Doc/library/concurrent.futures.rst
index 8d6b1e8..ffc29d7 100644
--- a/Doc/library/concurrent.futures.rst
+++ b/Doc/library/concurrent.futures.rst
@@ -216,6 +216,10 @@ to a :class:`ProcessPoolExecutor` will result in deadlock.
given, it will default to the number of processors on the machine.
If *max_workers* is lower or equal to ``0``, then a :exc:`ValueError`
will be raised.
+ On Windows, *max_workers* must be equal or lower than ``61``. If it is not
+ then :exc:`ValueError` will be raised. If *max_workers* is ``None``, then
+ the default chosen will be at most ``61``, even if more processors are
+ available.
*mp_context* can be a multiprocessing context or None. It will be used to
launch the workers. If *mp_context* is ``None`` or not given, the default
multiprocessing context is used.