[issue39609] Set the thread_name_prefix for asyncio's default executor ThreadPoolExecutor

Markus Mohrhard report at bugs.python.org
Tue Feb 11 06:35:18 EST 2020


New submission from Markus Mohrhard <markusm at dug.com>:

The ThreadPoolExecutor in BaseEventLoop.run_in_executor should set a thread_name_prefix to simplify debugging.

Might also be worth to limit the number of max threads. On our 256 core machines we sometimes get 1000+ threads due to the cpu_count() * 5 default limit.

----------
components: asyncio
messages: 361799
nosy: Markus Mohrhard, asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Set the thread_name_prefix for asyncio's default executor ThreadPoolExecutor
type: enhancement
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39609>
_______________________________________


More information about the Python-bugs-list mailing list