From e56caeb22b5a64fa508126b24a703c4823ac641c Mon Sep 17 00:00:00 2001 From: Matteo Ghia <61846068+Maestro-Zacht@users.noreply.github.com> Date: Mon, 15 Jul 2024 14:53:45 +0200 Subject: [PATCH] fix missing setting in celery --- docker/conf/celery.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker/conf/celery.py b/docker/conf/celery.py index f8eb9a86..5129f00a 100644 --- a/docker/conf/celery.py +++ b/docker/conf/celery.py @@ -9,6 +9,10 @@ from django.conf import settings # noqa app = Celery('myauth') +# Automatically try to establish the connection to the AMQP broker on +# Celery startup if it is unavailable. +app.conf.broker_connection_retry_on_startup = True + # Using a string here means the worker don't have to serialize # the configuration object to child processes. app.config_from_object('django.conf:settings')