30秒超时

This commit is contained in:
liuwei
2025-06-12 13:34:49 +08:00
parent df389eb48d
commit b75f559e4d

View File

@@ -65,7 +65,7 @@ def send_message_in_thread(func, *args, **kwargs):
# 在共享事件循环中运行任务
future = asyncio.run_coroutine_threadsafe(send(), loop)
# 等待任务完成,设置超时时间
future.result(timeout=10)
future.result(timeout=30)
except Exception as e:
logger.error(f"消息发送任务执行失败: {e}")