From 3336a4526b5607d9af976d0c9274dd0aedd9a6b6 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Thu, 28 Mar 2024 18:44:52 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3beat=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=9C=A8redis-ssl=E4=B8=8B=E8=BF=90=E8=A1=8C=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=20(#12893)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: jiangweidong --- utils/start_celery_beat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/start_celery_beat.py b/utils/start_celery_beat.py index d2533a559..3e7de8e95 100644 --- a/utils/start_celery_beat.py +++ b/utils/start_celery_beat.py @@ -48,7 +48,7 @@ if REDIS_SENTINEL_SERVICE_NAME and REDIS_SENTINELS: ) redis_client = sentinel_client.master_for(REDIS_SENTINEL_SERVICE_NAME) else: - REDIS_PROTOCOL = 'rediss' if settings.REDIS_USE_SSL else 'redis' + REDIS_PROTOCOL = 'rediss' if connection_params.pop('ssl', False) else 'redis' REDIS_LOCATION_NO_DB = '%(protocol)s://:%(password)s@%(host)s:%(port)s' % { 'protocol': REDIS_PROTOCOL, 'password': settings.REDIS_PASSWORD_QUOTE,