-
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
Error: Event loop is closed when running asyncio + sentinel examples #3431
Comments
I get the same error in redis==5.1.0 , 5.2.0 |
Have you tried also adding |
Ok, I dug a bit into the problem and I kind of managed to reproduce it.
With that said, please open your As for the actual reason to see this error instead of a more informative one, I will have to dig a bit more to see what causes it. |
@IlianIliev it is not my case:
Before I ran the script, I check
After I ran the test:
If I query redis for
|
Thanks for reaching out! Will start an investigation on this |
@pedroplytix You're right, it's started since 5.0.2 because of this PR. It's a part of 5.0.2 release |
Looks like up to this point garbage collector already removed an original ConnectionPool object, so it's impossible to reference it |
@pedroplytix Feel free to join the review of #3438 that should fix both if this issues |
Version: redis-py: 5.2 / redis 6.2.7
Platform: Python 3.12.7 on Debian (Docker container: python:3.12.7-slim-bookworm)
Description: Running the example provided in redis-py documentation to connect to sentinel using asyncio:
I get this error:
If I try to close the connection after
assert val == b"value"
:I get this error:
Checking with older redis-py versions, I've checked that this code worked fine in redis==5.0.0 and redis==5.0.1, but started to fail in redis==5.0.2
The text was updated successfully, but these errors were encountered: