Commit 17ef0d51 authored by Georg Brandl's avatar Georg Brandl

Note that maxtasksperchild is new in 3.2.

parent feedda2b
...@@ -1559,6 +1559,7 @@ with the :class:`Pool` class. ...@@ -1559,6 +1559,7 @@ with the :class:`Pool` class.
*initializer* is not ``None`` then each worker process will call *initializer* is not ``None`` then each worker process will call
``initializer(*initargs)`` when it starts. ``initializer(*initargs)`` when it starts.
.. versionadded:: 3.2
*maxtasksperchild* is the number of tasks a worker process can complete *maxtasksperchild* is the number of tasks a worker process can complete
before it will exit and be replaced with a fresh worker process, to enable before it will exit and be replaced with a fresh worker process, to enable
unused resources to be freed. The default *maxtasksperchild* is None, which unused resources to be freed. The default *maxtasksperchild* is None, which
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment