You can identify and log asyncio tasks that block the event loop for too long. Calling Python functions in asyncio programs rather than awaiting coroutines and tasks will block the event loop. Function calls that take a long time, such as those that perform file I/O or a CPU-bound task may cause the event loop […]
Published on January 25, 2024 10:00