[New-bugs-announce] [issue44075] Add a PEP578 audit hook for Asyncio loop stalls

Tom Forbes report at bugs.python.org
Sat May 8 08:19:46 EDT 2021


New submission from Tom Forbes <tom at tomforb.es>:

Detecting and monitoring loop stalls in a production asyncio application is more difficult than it could be.

Firstly you must enable debug mode for the entire loop then you need to look for warnings outputted via the asyncio logger. This makes it hard to send loop stalls to monitoring systems via something like statsd.

Ideally asyncio callbacks would always be timed and an auditevent always triggered if it passes a particular threshold. If debug mode is enabled then a warning is logged.

----------
components: asyncio
messages: 393251
nosy: asvetlov, orf, yselivanov
priority: normal
severity: normal
status: open
title: Add a PEP578 audit hook for Asyncio loop stalls
type: enhancement
versions: Python 3.11

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


More information about the New-bugs-announce mailing list