调接口的任务改为每天上午9点执行一次

This commit is contained in:
mark.tian
2025-12-09 21:58:49 +08:00
parent ae9b548311
commit 34520d4113
3 changed files with 6 additions and 6 deletions

View File

@@ -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 {