-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Feature] QueueListener监听逻辑 #4815
Copy link
Copy link
Closed
Labels
area:platformThe bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on.The bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on.enhancementNew feature or requestNew feature or requestfeature:chatuiThe bug / feature is about astrbot's chatui, webchatThe bug / feature is about astrbot's chatui, webchat
Metadata
Metadata
Labels
area:platformThe bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on.The bug / feature is about IM platform adapter, such as QQ, Lark, Telegram, WebChat and so on.enhancementNew feature or requestNew feature or requestfeature:chatuiThe bug / feature is about astrbot's chatui, webchatThe bug / feature is about astrbot's chatui, webchat
描述
webchat_adapter.py中的QueueListener, 每出现一个新的 conversation_id,就 create_task(listen_to_queue(conversation_id)) 启一个常驻监听协程。如果会话数持续增长,尤其是很多一次性 session,监听 task 数也会持续增长,长期会影响系统性能吧
使用场景
No response
你愿意提交PR吗?
Code of Conduct