优化flower启动代码
This commit is contained in:
@@ -4,8 +4,10 @@ from datetime import datetime
|
||||
import logging
|
||||
import requests
|
||||
from api_config import API_CONFIG, RETRY_CONFIG
|
||||
from logging_config import get_logger
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
# 获取配置好的logger
|
||||
logger = get_logger('call_api_task')
|
||||
|
||||
@app.task(bind=True, name='call_api', max_retries=None)
|
||||
def execute_call_api_task(self):
|
||||
|
||||
Reference in New Issue
Block a user