From ab9c6ecdff097704fe6a3154a081ec3a8410e745 Mon Sep 17 00:00:00 2001 From: Nicolas Marcq Date: Mon, 11 Sep 2023 11:11:48 +0200 Subject: [PATCH] Configure celery with correct URL by default --- Squest/settings.py | 2 +- docker/environment_variables/squest.env | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Squest/settings.py b/Squest/settings.py index fa4cf4315..636da8377 100644 --- a/Squest/settings.py +++ b/Squest/settings.py @@ -255,7 +255,7 @@ # ----------------------------------------- # CELERY CONFIG # ----------------------------------------- -CELERY_BROKER_URL = os.environ.get('CELERY_BROKER_URL', 'amqp://rabbitmq:rabbitmq@localhost:5672/squest') +CELERY_BROKER_URL = os.environ.get('CELERY_BROKER_URL', 'amqp://rabbitmq:rabbitmq@rabbitmq:5672/squest') print(f"CELERY_BROKER_URL: {CELERY_BROKER_URL}") # Add a five-minutes timeout to all Celery tasks. CELERY_TASK_SOFT_TIME_LIMIT = int(os.environ.get('CELERY_TASK_SOFT_TIME_LIMIT', 300)) diff --git a/docker/environment_variables/squest.env b/docker/environment_variables/squest.env index 4b6afbaf8..8191c574d 100644 --- a/docker/environment_variables/squest.env +++ b/docker/environment_variables/squest.env @@ -4,9 +4,6 @@ DB_HOST=db DB_PORT=3306 # DB_PORT=5432 # for psql -## celery -CELERY_BROKER_URL=amqp://rabbitmq:rabbitmq@rabbitmq:5672/squest - ## redis REDIS_CACHE_HOST=redis-cache