mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 14:17:48 +08:00
升级后端并开源UI
This commit is contained in:
9
api/tasks/test.py
Normal file
9
api/tasks/test.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- coding:utf-8 -*-
|
||||
|
||||
from api.extensions import celery
|
||||
from flask import current_app
|
||||
|
||||
|
||||
@celery.task(queue="ticket_web")
|
||||
def test_task():
|
||||
current_app.logger.info("test task.............................")
|
Reference in New Issue
Block a user