fix missing setting in celery

This commit is contained in:
Matteo Ghia
2024-07-15 14:53:45 +02:00
parent ceb07ebc67
commit e56caeb22b

View File

@@ -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')