-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Async retry needs to capture OSError exception in retry #3450
Comments
you can create a custom
|
Hi! Client instance accept a list of exceptions you want to Retry on, you can specify OSError there
Closing issue for now. Let me know if it doesn't resolved |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: What redis-py and what redis version is the issue happening on?
redis-py 5.20
Platform: What platform / version? (For example Python 3.5.1 on Windows 7 / Ubuntu 15.10 / Azure)
Fedora 40, Python 3.12
Description: Description of your issue, stack traces from errors and code that reproduces the issue
I tried the program for asyncio version from Redis doc by taking down Redis server.
The first exception was raised is built-in
OSError
rather thanredis.exceptions.ConnectionError
. The exception regarding to the lost connection from Redis sever behave differently between the asnycio version and the normal version.The text was updated successfully, but these errors were encountered: