mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 11:23:51 +08:00
升级后端并开源UI
This commit is contained in:
9
celery_worker.py
Normal file
9
celery_worker.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
from api.app import create_app
|
||||
from api.extensions import celery
|
||||
|
||||
# celery worker -A celery_worker.celery -l DEBUG -E -Q xxxx
|
||||
|
||||
app = create_app()
|
||||
app.app_context().push()
|
Reference in New Issue
Block a user