From 59958832c0303fc47601a79544d6c3e4d814c49d Mon Sep 17 00:00:00 2001 From: j Date: Tue, 25 Jul 2023 11:55:24 +0100 Subject: [PATCH] whether broker connection retries are made during startup in Celery 6.0 and above. --- app/celery.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/celery.py b/app/celery.py index 368d27a..9478bc0 100644 --- a/app/celery.py +++ b/app/celery.py @@ -4,7 +4,7 @@ from celery import Celery os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings') -app = Celery('app') +app = Celery('app', broker_connection_retry_on_startup=True) # Using a string here means the worker doesn't have to serialize # the configuration object to child processes.