feat: 增强多实例分布式部署兼容

- 增加定时任务分布式锁并覆盖 chatlog、文档导入和 Agent HITL 过期扫描

- 增强 Redis MQ 多实例 consumer 标识、pending reclaim 和单条处理能力

- 增加文档导入状态 Redis 广播和 Agent HITL 跨节点路由确认
This commit is contained in:
2026-05-29 18:27:46 +08:00
parent cc3bb9cff0
commit 0f4d10c43c
39 changed files with 2703 additions and 17 deletions

View File

@@ -39,6 +39,7 @@ easyflow:
redis:
database: 1
stream-prefix: easyflow:mq
consumer-instance-id: ${EASYFLOW_INSTANCE_ID:${HOSTNAME:${random.uuid}}}
chat-persist-shard-count: 4
consumer-batch-size: 200
consumer-block-timeout: 2000ms
@@ -74,11 +75,19 @@ easyflow:
validate-on-migrate: true
storage:
type: xFileStorage
agent:
runtime:
instance-id: ${EASYFLOW_INSTANCE_ID:${HOSTNAME:${random.uuid}}}
route-ttl: 24h
command-topic-prefix: easyflow:agent-runtime-command
command-result-timeout: 5s
command-result-ttl: 5m
ai:
rag:
health:
cache-ttl: 5s
document-import:
status-broadcast-channel: easyflow:document-import:status
parse-monitor:
fixed-delay: 10000
initial-delay: 10000