Skip to content

Commit

Permalink
Add note in the docs about the pool deadlock issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
ionelmc committed Jan 12, 2020
1 parent 07605f3 commit bcf9865
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/subprocess-support.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ Thus you need to make sure your ``multiprocessing.Pool`` gets a nice and clean e
If you must use the context manager API (e.g.: the pool is managed in third party code you can't change) then you can
register a cleaning SIGTERM handler like so:

.. warning::

**This technique cannot be used on Python 3.8** (registering signal handlers will cause deadlocks in the pool,
see: https://bugs.python.org/issue38227).

.. code-block:: python
from multiprocessing import Pool
Expand Down

0 comments on commit bcf9865

Please sign in to comment.