You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DocsGPT/application/celery.py

11 lines
260 B
Python

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()