[issue37276] Incorrect number of running calls in ProcessPoolExecutor

Géry report at bugs.python.org
Tue Jun 25 14:57:21 EDT 2019


Géry <gery.ogam at gmail.com> added the comment:

@Ned Deily

Okay, I did not know if I had to list the potentially interested people (according to their Github contribution on the module for instance) or let them do it themselves. Thank you for clarifying.

@Carol Willing

The number of RUNNING futures is always `max_workers + 1` for `ProcessPoolExecutor` but only on Windows (CPython 3.7, Windows 10). On MacOS, this number varies, depending on the time you wait before calling `print(future.running())`.
So to reproduce you could add the expression `time.sleep(n)` right after  the statement `futures = [executor.submit(call) for _ in range(8)]` and see if the number of RUNNING futures varies with n.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue37276>
_______________________________________


More information about the Python-bugs-list mailing list