优化 ai_auto_response 队列过期丢弃与超时策略
- 为 ai_auto_response 队列消息记录入队时刻,并增加消息过期丢弃机制 - 在出队前与发送前各检查一次消息是否过期,避免补发过时群聊回复 - 为 skip 日志补充 age 字段,便于观察排队老化情况 - 将 ai_auto_response 外层总超时收紧到 20 秒,并新增 message_expire_sec=12 配置 - 将 Dify auto_reply.group 请求超时收紧到 15 秒,并关闭重试以提升群聊时效性
This commit is contained in:
@@ -39,7 +39,8 @@ scene = "auto_reply.group"
|
||||
|
||||
[runtime]
|
||||
llm_max_concurrency = 3
|
||||
llm_call_timeout_sec = 120
|
||||
llm_call_timeout_sec = 20
|
||||
message_expire_sec = 12
|
||||
queue_worker_count = 2
|
||||
queue_maxsize = 500
|
||||
|
||||
|
||||
Reference in New Issue
Block a user