How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.34.0
Steps to Reproduce
Hey team,
I'm having a lot of "Task was destroyed but it is pending!" issues reported at Sentry.
I'm running Sanic (v23.6.0) and here's a sample of the errors:
Task was destroyed but it is pending!
task: <Task pending name='Task-532' coro=<patch_asyncio.._sentry_task_factory.._coro_creating_hub_and_span() running at /var/www/fernand/env/lib/python3.9/site-packages/sentry_sdk/integrations/asyncio.py:52> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f7af084d2b0>()]>>
Here's a sample:
https://cyril-nicodeme.sentry.io/issues/5081979263/events/6a88812f7d1d4c269d792b5f4b010541/
(Hopefully, you can also access more details about the issue via the UUID internally).
Expected Result
Should not have a "Task was destroyed but it is pending!" issue but properly send any issues
Actual Result
Fails with "Task was destroyed but it is pending"
How do you use Sentry?
Sentry Saas (sentry.io)
Version
1.34.0
Steps to Reproduce
Hey team,
I'm having a lot of "Task was destroyed but it is pending!" issues reported at Sentry.
I'm running Sanic (v23.6.0) and here's a sample of the errors:
Task was destroyed but it is pending!
task: <Task pending name='Task-532' coro=<patch_asyncio.._sentry_task_factory.._coro_creating_hub_and_span() running at /var/www/fernand/env/lib/python3.9/site-packages/sentry_sdk/integrations/asyncio.py:52> wait_for=<Future pending cb=[<TaskWakeupMethWrapper object at 0x7f7af084d2b0>()]>>
Here's a sample:
https://cyril-nicodeme.sentry.io/issues/5081979263/events/6a88812f7d1d4c269d792b5f4b010541/
(Hopefully, you can also access more details about the issue via the UUID internally).
Expected Result
Should not have a "Task was destroyed but it is pending!" issue but properly send any issues
Actual Result
Fails with "Task was destroyed but it is pending"