mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-18 07:23:00 +00:00
add an additional case for idle ThreadPoolExecutor threads
this is what they look like in Python 3.7
This commit is contained in:
@@ -437,6 +437,9 @@ def print_stacks(file=sys.stderr):
|
|||||||
if (
|
if (
|
||||||
last_frame[0].endswith('threading.py')
|
last_frame[0].endswith('threading.py')
|
||||||
and last_frame[-1] == 'waiter.acquire()'
|
and last_frame[-1] == 'waiter.acquire()'
|
||||||
|
) or (
|
||||||
|
last_frame[0].endswith('thread.py')
|
||||||
|
and last_frame[-1].endswith('work_queue.get(block=True)')
|
||||||
):
|
):
|
||||||
# thread is waiting on a condition
|
# thread is waiting on a condition
|
||||||
# call it idle rather than showing the uninteresting stack
|
# call it idle rather than showing the uninteresting stack
|
||||||
|
Reference in New Issue
Block a user