Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
Use redis as badckend for celery (#20)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Co <[email protected]>
  • Loading branch information
onimsha authored Apr 23, 2024
1 parent a1c8feb commit 70ef060
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/danswer/background/celery/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit 70ef060

Please sign in to comment.