From 70ef0605b03ec886d03e258e43180fb1af823633 Mon Sep 17 00:00:00 2001 From: Alex Co Date: Tue, 23 Apr 2024 10:02:37 +0800 Subject: [PATCH] Use redis as badckend for celery (#20) Signed-off-by: Alex Co --- backend/danswer/background/celery/celery.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/danswer/background/celery/celery.py b/backend/danswer/background/celery/celery.py index 902aaac8ca8..b2f3c28cc34 100644 --- a/backend/danswer/background/celery/celery.py +++ b/backend/danswer/background/celery/celery.py @@ -39,7 +39,8 @@ connection_string = build_connection_string(db_api=SYNC_DB_API) # celery_broker_url = f"sqla+{connection_string}" celery_broker_url = "redis://redis-server-service:6379/0" -celery_backend_url = f"db+{connection_string}" +# celery_backend_url = f"db+{connection_string}" +celery_backend_url = "redis://redis-server-service:6379/0" celery_app = Celery(__name__, broker=celery_broker_url, backend=celery_backend_url)