Delivery runs: many logins can still delay others' webhooks, and gaps can count 2 for one subscription
@ThomasK33 已经在做这个了。
开始于 2026年11月19日。
评估
这个 Issue 还没有评估数据。
描述
Two notes from the verifiers of #67 and #71 are still open. Neither is new: both were already there before #67.
Many logins can still delay other logins' webhooks
A /cron/deliver run has 25 s, but it starts reads only while 20 s are left, so all reads share about 5 s. Each login gets 1 s of that (scanTimeout), and ScanTargets serves the subscriptions furthest behind first. Five or more logins that each add one subscription per run with cursor: "v1.0" (a replay of the whole history) take the whole 5 s. Other logins' subscriptions then wait. The verifier of #67 saw a healthy login go unserved in 8 of 8 runs with five such logins; base behaves the same. Four logins delayed it by one run in 2 of 5 tries.
Possible fixes: order ScanTargets round-robin by principal instead of by scanned_through alone, or cap how many replay subscriptions a login may open per run.
gaps can count 2 for one subscription in one run
If a purge raises the purge mark above a subscription's read position after that read crossed the old mark, the same run can raise a second gap for it. DeliverResult.Gaps (the gaps field of /cron/deliver) then counts 2 for one subscription. Only one gap envelope is sent. Found by reading enqueueWindow in faucet/deliver.go, not tested live.
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high
- 主要语言
- Go
- 星标
- 1
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coder/faucet 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 4/5 3-5 天 新手友好度 28/100
-
难度 3/5 1-2 天 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 30/100
相似的 Issue
-
难度 1/5 1 小时以内 新手友好度 62/100
slavakurilyak/awesome-ai-agents#1026 ·
-
GetBatchResponseById panics for items without a body (204/302) and for unknown ids可能已有人在做 @0z5a 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
-
bug
难度 2/5 1-3 小时 新手友好度 80/100
JuliusBrussee/caveman#1567 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
-
bug postgresql
难度 2/5 1-3 小时 新手友好度 73/100
维护者通常 1 天内回复