From d50878ff3b9329764f491f62c71f505aa536fbc0 Mon Sep 17 00:00:00 2001 From: Ellias Matheus Date: Mon, 8 Aug 2022 10:58:21 -0300 Subject: [PATCH] Add verification for redis with ssl Accept redis with ssl when sigleton_backend_url is not informed --- celery_singleton/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/celery_singleton/config.py b/celery_singleton/config.py index 55e51ba..fdd929b 100644 --- a/celery_singleton/config.py +++ b/celery_singleton/config.py @@ -31,7 +31,7 @@ def backend_url(self): if url is not None: return url url = self.app.conf.get("result_backend") - if not url or not url.startswith("redis://"): + if not url or not url.startswith("redis://") or not url.startswith("rediss://"): url = self.app.conf.get("broker_url") return url