mirror of https://github.com/arc53/DocsGPT
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.
10 lines
290 B
Python
10 lines
290 B
Python
1 year ago
|
from celery import Celery
|
||
1 year ago
|
from application.core.settings import settings
|
||
1 year ago
|
|
||
|
def make_celery(app_name=__name__):
|
||
1 year ago
|
celery = Celery(app_name, broker=settings.CELERY_BROKER_URL, backend=settings.CELERY_RESULT_BACKEND)
|
||
1 year ago
|
celery.conf.update(settings)
|
||
1 year ago
|
return celery
|
||
|
|
||
|
celery = make_celery()
|