diff --git a/admin/dashboard/blueprints/contacts.py b/admin/dashboard/blueprints/contacts.py index a6859fc..aef6811 100644 --- a/admin/dashboard/blueprints/contacts.py +++ b/admin/dashboard/blueprints/contacts.py @@ -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}")