优化 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:
liuwei
2026-04-24 15:03:35 +08:00
parent ed7af06555
commit 7cee7a99e2
4 changed files with 74 additions and 4 deletions
+2 -1
View File
@@ -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