whether broker connection retries are made during startup in Celery 6.0 and above.

This commit is contained in:
j 2023-07-25 11:55:24 +01:00
parent b6c741fd05
commit 59958832c0

View file

@ -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.