Add Redis-backed chat queue

This commit is contained in:
2026-07-08 17:36:20 +08:00
parent db1d83631b
commit 23d5f42972
11 changed files with 349 additions and 7 deletions

View File

@@ -302,6 +302,15 @@ const systemSettingSections: SystemSettingSection[] = [
max: 3600,
description: "请求在排队中超过该时间后自动结束并提示用户稍后再试。",
},
{
key: "chat_active_lease_seconds",
label: "问答执行租约(秒)",
type: "number",
defaultValue: 900,
min: 60,
max: 86400,
description: "Redis 全局队列中执行名额的自动过期时间,防止 worker 异常退出后长期占用并发名额。",
},
],
},
{