Skip to content
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

[REF-2978] Ignore Redis config_set for AWS ElastiCache #3401

Merged
merged 2 commits into from
May 31, 2024

Conversation

masenf
Copy link
Collaborator

@masenf masenf commented May 29, 2024

AWS ElastiCache redis has out of band configuration and cannot call CONFIG commands, so allow the user to ignore errors as an escape hatch.

Fix #3371

AWS ElastiCache redis has out of band configuration and cannot call CONFIG
commands, so allow the user to ignore errors as an escape hatch.

Fix #3371
Copy link

linear bot commented May 29, 2024

reflex/state.py Outdated
)
except ResponseError:
# Some redis servers only allow out-of-band configuration, so ignore errors here.
ignore_config_error = os.environ.get("REFLEX_AWS_ELASTICACHE_REDIS", None)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure but this issue might not be exclusive to AWS. not sure what the GCP/Azure implementation of Redis looks like but maybe it's similar. Maybe a more 'general' env var name would be better?

@picklelo picklelo merged commit 5995b32 into main May 31, 2024
47 checks passed
benedikt-bartscher pushed a commit to benedikt-bartscher/reflex that referenced this pull request Jun 3, 2024
@masenf masenf deleted the masenf/redis-keyspace-config-escape-hatch branch June 25, 2024 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[REF-2978] Redis CONFIG command disabled in AWS ElastiCache
3 participants