celery syncs

This commit is contained in:
Alex
2023-10-01 20:05:13 +01:00
parent a619269502
commit cd9b03bdb9
3 changed files with 6 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ from celery import Celery
from application.core.settings import settings
def make_celery(app_name=__name__):
celery = Celery(app_name, broker=settings.CELERY_BROKER_URL)
celery = Celery(app_name, broker=settings.CELERY_BROKER_URL, backend=settings.CELERY_RESULT_BACKEND)
celery.conf.update(settings)
return celery