You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seems like the connection is created when the StateManager is created which is done once. We probably need a polling mechanism that times out after x period before connectionError is thrown
@ElijahAhianyo Thanks for responding so fast!
Maybe we can also try to solve this via configuration?
The Redis-constructor seems to accept some retry-arguments.
@ElijahAhianyo I'm sorry, just checked, that retrying is already the default for the client, but not for individual calls on the client.
So we would need to have something in redis that catches the errors and either retries the state change/loading or skips it.
Implementation idea of @benedikt-bartscher: Create a @redis_retry-decorator that wraps the relevant functions.
At least the backend should not be blocked permanently by those errors. What do you think?
Describe the bug
Reflex does not reconnect to redis when connection was lost.
To Reproduce
Steps to reproduce the behavior:
redis.exceptions.ConnectionError: Connection closed by server.
Expected behavior
Reflex should automatically try to reconnect on connection errors and log a warning.
Are there any configuration options that I missed?
The text was updated successfully, but these errors were encountered: