working full

This commit is contained in:
Alex
2023-09-27 16:25:57 +01:00
parent 025549ebf8
commit 8fa9657ba6
10 changed files with 175 additions and 157 deletions

View File

@@ -1,10 +1,9 @@
from celery import Celery
from app import create_app
from application.core.settings import settings
def make_celery(app_name=__name__):
app = create_app()
celery = Celery(app_name, broker=app.config['CELERY_BROKER_URL'])
celery.conf.update(app.config)
celery = Celery(app_name, broker=settings.CELERY_BROKER_URL)
celery.conf.update(settings)
return celery
celery = make_celery()