commit by Kalman.CHENG ☆

This commit is contained in:
chengminglong
2025-08-15 08:54:53 +08:00
parent c392bc09bf
commit bcda99e218
50 changed files with 87923 additions and 23 deletions

View File

@@ -95,5 +95,5 @@ async def train_document_task():
update_theme_sql: str = f"UPDATE t_ai_teaching_model_theme SET search_flag = 0, train_flag = 0 WHERE id = {theme['id']}"
await execute_sql(update_theme_sql, ())
# 添加适当的等待时间,避免频繁查询
await asyncio.sleep(10) # 开发阶段每10秒一次
# await asyncio.sleep(1200) # 每十分钟查询一次
await asyncio.sleep(20) # 开发阶段每20秒一次
# await asyncio.sleep(600) # 每十分钟查询一次