We are using the ProcessPoolExecutor from concurrent.futures
in a service that asynchronously receives requests, and does the actual, synchronous processing in the process pool.
Once we ran into the case that the process pool was exhausted, so new requests had to wait until some other processes were finished.
Is there a way to interrogate the process pool for its current usage? That would allow us to monitor their state and do proper capacity planning.
If there isn't, is there any good alternative process pool implementation with an asynchronous interface that supports such monitoring/capacity planning?