This commit is contained in:
Alex
2023-09-26 10:03:22 +01:00
parent e5c43cfc4b
commit e85a583f0a
15 changed files with 514 additions and 372 deletions

10
application/celery.py Normal file
View File

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