diff --git a/admin/dashboard/blueprints/message_push.py b/admin/dashboard/blueprints/message_push.py index 5862984..6b53385 100644 --- a/admin/dashboard/blueprints/message_push.py +++ b/admin/dashboard/blueprints/message_push.py @@ -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}")