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