whether broker connection retries are made during startup in Celery 6.0 and above.
This commit is contained in:
parent
b6c741fd05
commit
59958832c0
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ from celery import Celery
|
||||||
|
|
||||||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'app.settings')
|
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
|
# Using a string here means the worker doesn't have to serialize
|
||||||
# the configuration object to child processes.
|
# the configuration object to child processes.
|
||||||
|
|
Loading…
Reference in a new issue