[issue39617] max_workers argument to concurrent.futures.ProcessPoolExecutor is not flexible enough
sds
report at bugs.python.org
Sun Feb 16 19:24:04 EST 2020
sds <sds at gnu.org> added the comment:
I don't think you need this complexity - just keep the pool max size and submit jobs only when the loadavg drops below the threshold.
See my implementation attached.
----------
Added file: https://bugs.python.org/file48898/run-at-load-avg.py
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39617>
_______________________________________
More information about the Python-bugs-list
mailing list