DocsGPT/application/celery.py
2023-09-27 16:25:57 +01:00

10 lines
250 B
Python

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.conf.update(settings)
return celery
celery = make_celery()