mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 00:53:14 +00:00
working full
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user