[issue14119] Ability to adjust queue size in Executors

Nam Nguyen report at bugs.python.org
Mon Jun 11 06:46:08 CEST 2012


Nam Nguyen <bitsink at gmail.com> added the comment:

I used the ThreadPoolExecutor to process a large number (bounded) of input/output jobs. Because there were too many of them and the worker threads could not process them fast enough to drain them from the queue, the queue kept increasing in size.

It was okay for the script, though, to block, waiting for the queue to drain, before submitting new jobs. So I needed to limit the queue size.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14119>
_______________________________________


More information about the Python-bugs-list mailing list