调接口的任务改为每天上午9点执行一次
This commit is contained in:
@@ -225,7 +225,7 @@ def push_data_to_dtc_task(self):
|
||||
def execute_call_api_task(self):
|
||||
"""遍历API配置文件中的所有API信息并调用接口"""
|
||||
current_time = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
|
||||
logger.info(f"开始遍历API配置文件执行调用任务 - 当前时间: {current_time}")
|
||||
logger.info(f"开始遍历API配置文件执行任务 - 当前时间: {current_time}")
|
||||
|
||||
# 获取重试配置
|
||||
max_retries = RETRY_CONFIG['max_retries']
|
||||
@@ -331,7 +331,6 @@ def execute_call_api_task(self):
|
||||
|
||||
# 汇总结果
|
||||
total_count = len(results)
|
||||
logger.info(f"遍历API配置文件完成 - 成功: {success_count}/{total_count}")
|
||||
print(f"[{current_time}] 📊 任务汇总 - 成功: {success_count}/{total_count}")
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user