-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] - CancelledError swallowed (with solution) #2551
Comments
sileht
added a commit
to sileht/redis-py
that referenced
this issue
Mar 2, 2023
async_timeout does not support python 3.11 aio-libs/async-timeout#295 And have two years old annoying bugs: aio-libs/async-timeout#229 redis#2551 Since asyncio.timeout has been shipped in python 3.11, we should start using it. Partially fixes 2551
6 tasks
sileht
added a commit
to sileht/redis-py
that referenced
this issue
Mar 2, 2023
async_timeout does not support python 3.11 aio-libs/async-timeout#295 And have two years old annoying bugs: aio-libs/async-timeout#229 redis#2551 Since asyncio.timeout has been shipped in python 3.11, we should start using it. Partially fixes 2551
sileht
added a commit
to sileht/redis-py
that referenced
this issue
Mar 2, 2023
async_timeout does not support python 3.11 aio-libs/async-timeout#295 And have two years old annoying bugs: aio-libs/async-timeout#229 redis#2551 Since asyncio.timeout has been shipped in python 3.11, we should start using it. Partially fixes 2551
dvora-h
pushed a commit
that referenced
this issue
Mar 16, 2023
async_timeout does not support python 3.11 aio-libs/async-timeout#295 And have two years old annoying bugs: aio-libs/async-timeout#229 #2551 Since asyncio.timeout has been shipped in python 3.11, we should start using it. Partially fixes 2551
Closing as I assume this issue was fixed with all the async and CancelledError fixes. @svaraborut Feel free to re-open it if this still happen to you. |
The fix does only work on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version:
4.2.2
Platform:
any
Description:
I had various issues related to task cancellation when using
Redis
due toasyncio.CancelledError
disappearing sometimes. Probably related to #2028The bug is difficult to reproduce as
cancel()
needs to be called on atask
exactly when is waiting within anasync with async_timeout.timeout(timeout):
block.I tracked down the issue to
async_timeout
used insideredis.asyncio.connection
. This module has this known issue that is not being addressed.I patched the library externally with this code
but
connection.py
should be rewritten usingasyncio.timeout
as this library may lead to strange behavior as mentioned here.The text was updated successfully, but these errors were encountered: