commit by Kalman.CHENG ☆
This commit is contained in:
@@ -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) # 每十分钟查询一次
|
||||
|
Reference in New Issue
Block a user