[bug] errata-daily label stage fails with engine timeout because Audit.ts passes no…
维护者通常 4 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 78/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
缺失的 timeout 位于 LIFEOS/ERRATA/Audit.ts 中对 judgeMany 的调用处(大约第 473 行);请结合相邻的 LIFEOS/ERRATA/Triage4.ts:315 一起阅读该调用,后者已经传入 timeoutMs: CALL_TIMEOUT_MS。然后检查 DEFAULT_TIMEOUT_MS 在 LIFEOS/ASSAY/Engine.ts 中是如何应用的(定义在第 59 行附近,使用在第 423 行附近),以便理解被绕过的 fallback。完成意味着审计调用传入显式的每次调用 timeout,并且 Errata.ts daily 的全池夜间运行不再报告 engine timeout。注意报告者已经在本地运行此补丁,因此在打开 pull request 之前请与其确认。
由索引模型根据 Issue 内容生成。
描述
What happened
errata-daily label stage fails with engine timeout because Audit.ts passes no timeoutMs to judgeMany, so each call gets the 3 s hook default
Summary
Errata.ts daily fails its label stage with engine timeout: The operation was aborted. whenever the audit pool holds more than a handful of candidates.
Cause. LIFEOS/ERRATA/Audit.ts:473 calls judgeMany(items, questions, { caller: "errata-audit" }) with no timeoutMs. Each engine call then falls back to DEFAULT_TIMEOUT_MS = 3000 (LIFEOS/ASSAY/Engine.ts:59, applied at :423), which is sized for hooks that call the engine on every turn. The time budget Errata.ts computes reaches only the pool-level withTimeout around the call (Audit.ts:472-476), never the individual request.
Effect (present at 8.761.0, fb9aef4). All candidates go out concurrently (up to 32), and a pool of 15+ calls to @cf/cloudflare/clef-omni often exceeds 3 s per call: on one nightly run 23 candidates were sent, all 23 hit the 3 s limit, and the retry left 18 failed, so the daily run exited 1. Failed rows are retried the next night, so no labels are lost, but the run reads red and labels arrive a day late.
Suggested fix. Pass a per-call timeout the way the neighbouring LIFEOS/ERRATA/Triage4.ts:315 already does (timeoutMs: CALL_TIMEOUT_MS, 15 s):
() => (opts.judgeMany ?? judgeMany)(items, questions, { caller: "errata-audit", timeoutMs: 15_000 }),
I have this applied locally as a patch; the next nightly run with a full pool is the confirmation.
Details
- Kind: bug
- LifeOS version: 8.761.0
Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.
- 主要语言
- TypeScript
- 星标
- 19.9k
- 派生
- 2.5k
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
danielmiessler/LifeOS 的其他 Issue
-
难度 1/5 1 小时以内 新手友好度 88/100
danielmiessler/LifeOS#2941 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
danielmiessler/LifeOS#2940 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
danielmiessler/LifeOS#2939 ·
维护者通常 4 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
danielmiessler/LifeOS#2938 ·
维护者通常 4 天内回复
-
难度 1/5 1 小时以内 新手友好度 90/100
danielmiessler/LifeOS#2936 ·
维护者通常 4 天内回复
查看 danielmiessler/LifeOS 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
External sources always come back in English: `lc` isn't passed to `/api/v3/external_sources`可能已有人在做 @Anurag1428 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
openfoodfacts/openfoodfacts-explorer#2264 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 80/100
cloudflare/workers-sdk#17139 ·
维护者通常 1 天内回复
-
area: editor P3 type: feature
难度 2/5 1-3 小时 新手友好度 74/100
halisonworks/mod-codeling#290 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
colinhacks/zod#6776 ·
维护者通常 1 天内回复