quart
quart copied to clipboard
Task was destroyed but it is pending!
The error message is telling us that a task was destroyed, but it's still pending. Specifically, we have a task with the name 'Task-1672902' that was in the middle of running the handle_messages() function at /usr/local/lib/python3.8/site-packages/quart/asgi.py:56. But for some reason, it got destroyed before it could complete.
The message: Task was destroyed but it is pending! task: <Task pending name='Task-1672902' coro=<ASGIHTTPConnection.handle_messages() running at /usr/local/lib/python3.8/site-packages/quart/asgi.py:56> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7feb66ff0190>()]>>
Environment:
- Python version: 3.8.12
- Quart version: 0.19.3