优化线程时间,30秒

This commit is contained in:
liuwei
2025-06-12 14:23:07 +08:00
parent a17205953b
commit 2524826cec

View File

@@ -45,7 +45,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}")