Message393251
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. |
|
Date |
User |
Action |
Args |
2021-05-08 12:19:46 | orf | set | recipients:
+ orf, asvetlov, yselivanov |
2021-05-08 12:19:46 | orf | set | messageid: <1620476386.35.0.418122152623.issue44075@roundup.psfhosted.org> |
2021-05-08 12:19:46 | orf | link | issue44075 messages |
2021-05-08 12:19:45 | orf | create | |
|