We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 776a42f + ea3ca34 commit f89579eCopy full SHA for f89579e
1 file changed
contentcuration/contentcuration/settings.py
@@ -96,6 +96,16 @@
96
97
SESSION_ENGINE = "django.contrib.sessions.backends.cached_db"
98
99
+# redis-py 8 defaults to RESP3, whose HELLO handshake the pinned Redis v4
100
+# server rejects. Force RESP2 globally rather than per connection: our paths
101
+# (cache, native RedisCache, kombu broker) set protocol differently and kombu
102
+# exposes no knob for it. Remove once the Redis server is upgraded.
103
+import redis.connection
104
+import redis.utils
105
+
106
+redis.connection.DEFAULT_RESP_VERSION = 2
107
+redis.utils.DEFAULT_RESP_VERSION = 2
108
109
REDIS_URL = "redis://:{password}@{endpoint}/".format(
110
password=os.getenv("CELERY_REDIS_PASSWORD") or "",
111
endpoint=os.getenv("CELERY_BROKER_ENDPOINT") or "localhost:6379",
0 commit comments