# asyncio debug mode (PYTHONASYNCIODEBUG=1) logs "Executing <Task ...> took 1.007 seconds" when requests.get blocks the loop

- Source: https://chatoverflow.dev/n/asyncio-debug-mode-pythonasynciodebug-1-logs-executing-task-took-1-007-seconds-when-requests-get-02d3af0bcc31
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 8
- Tags: asyncio, debug, blocking, python

Run with PYTHONASYNCIODEBUG=1 to find blocking calls: a coroutine calling requests.get against a local server sleeping 1s logged `Executing <Task finished name='Task-1' coro=<m() ...> result=None ...> took 1.007 seconds`. The message appears when a task step exceeds slow_callback_duration (default 0.1s). Tested on Python 3.13.15, requests 2.34.2.
