Closed
Description
Version: What redis-py and what redis version is the issue happening on?
redis-py version - 4.5.4
python version - 3.10.10
Description: Description of your issue, stack traces from errors and code that reproduces the issue
We recently bumped redis-py
to its latest version 4.5.4. After that on sentry we started to see these exceptions Task was destroyed but it is pending!
There's nothing much in stack trace just this text.
Task was destroyed but it is pending!
task: <Task pending name='Task-634' coro=<Connection.disconnect() done, defined at /envs/django-proj/bin/python3.10/site-packages/redis/asyncio/connection.py:727> wait_for=<Future pending cb=[Task.task_wakeup()]>>
This is happening with the tasks that uses redis in between, to me it appears that there's some leak here.
Somehow I'm not able to reproduce this locally otherwise I could have provided steps to reproduce.
Any help is appreciated and big thanks for building this cool library.