the.bay.news

Executor queue size

Discussions on Python.org
Executor queue size
How would we feel about a method like qsize() on Executors to get the number of requests currently queued for the given executor (but not actively executing yet). I have a case where an interface takes in an Executor and then manages its lifecycle. I don’t have a way to know how busy that instance (I happen to use ThreadPoolExecutor) is without reaching into the privates of it like here: https://stackoverflow.com/a/68752016 Optimally I’d then use the queue size to emit a metric to know if its ...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.