Note that maxtasksperchild is new in 2.7.

This commit is contained in:
Georg Brandl 2010-10-17 06:21:30 +00:00
parent c9a6320b00
commit 92e6972c53

View file

@ -1543,6 +1543,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:: 2.7
*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