Aquiles Carattino logo

Tech notes/concurrent futures and threadpoolexecutor

First published:

Last Edited:

Number of edits:

In Python, when using the ThreadPoolExecutor of concurrent.futures, it is hard to know how many elements are waiting in the queue to be processed. The best I could gather is 1 :

executor._work_queue

That is the queue where the WorkItems are stored.

  • Can it be a good idea to create my own PoolExecutor?

  1. https://github.com/python/cpython/blob/b5789a7419655f66692fab463320048bd2290e81/Lib/concurrent/futures/thread.py#L187 


Backlinks

These are the other notes that link to this one.

Nothing links here, how did you reach this page then?

Newsletter

Join my experiment of better thinking and interesting discussions
Aquiles Carattino
Aquiles Carattino
This note you are reading is part of my digital garden. Follow the links to learn more, and remember that these notes evolve over time. After all, this website is not a blog.
© 2021 Aquiles Carattino
Privacy Policy
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.