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 天內回覆