mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 22:17:37 +08:00
Modify code organization
This commit is contained in:
10
cmdb-api/celery_worker.py
Normal file
10
cmdb-api/celery_worker.py
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
from api.app import create_app
|
||||
from api.extensions import celery
|
||||
|
||||
# celery worker -A celery_worker.celery -l DEBUG -E -Q <queue_name> --concurrency=1
|
||||
print(celery)
|
||||
|
||||
app = create_app()
|
||||
app.app_context().push()
|
Reference in New Issue
Block a user