mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-29 16:43:16 +00:00
testings
This commit is contained in:
10
application/celery.py
Normal file
10
application/celery.py
Normal 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()
|
||||
Reference in New Issue
Block a user