修复菜单插件超时拖慢主链路问题
1. 为菜单图片发送增加独立的同步等待预算,避免单次菜单命令长时间占用消息处理协程。 2. 调整菜单插件外层处理超时与文本回退空间,避免内外层超时重合导致降级逻辑来不及执行。 3. 修复 md2img 专用运行时在超时/取消时未显式取消后台任务的问题,减少渲染残留任务堆积。
This commit is contained in:
@@ -20,6 +20,7 @@ _command_catalog_tool = RobotMenuRenderTool(
|
||||
image_fallback_to_text=True,
|
||||
image_render_timeout_seconds=30,
|
||||
image_render_retries=1,
|
||||
sync_send_timeout_seconds=10,
|
||||
image_template_path="plugins/robot_menu/templates/menu_cards.html",
|
||||
log=LOG,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user