Skip to content

Task was destroyed but it is pending! #289

Description

@Saadelkheety

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions