One slow handler stalls the outbox, and each delivery queries the default locale
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Start with src/FluentCMS.Core/Events/OutboxDrainer.cs and the worker registration in DependencyInjection/FluentCmsServiceCollectionExtensions.cs; the issue also names EventOperation.cs, JobExecutor.cs, OutboxKick.cs, and OutboxDrainJob.cs. Review the related job store behavior and coordinate with #3282, which changes the same drain. Done means meeting all five acceptance criteria and adding tests for each.
由索引模型根据 Issue 内容生成。
描述
Problem
- One slow handler stalls every handler. The
outboxqueue has one worker (DependencyInjection/FluentCmsServiceCollectionExtensions.cs:285) and a drain delivers rows one at a time (Events/OutboxDrainer.cs:59-71), so a handler that takes the 60 sDeliveryTimeoutholds back all the others. - Each delivery and each job run queries the default locale.
Events/EventOperation.cs:19-22andJobs/JobExecutor.cs:248-251readSite.DefaultLocaleuncached. - A failed drain suppresses kicks.
Events/OutboxKick.cs:24treats any pending drain job as already queued without looking atRunAt. After a failure the retry is pending in the future (Jobs/JobStore.cs:153-154), so delivery falls back to the every-minute drain for about 7 minutes. - The idle recurring drain writes rows every minute.
Events/OutboxDrainJob.cs:103inserts a job and an attempt row per minute, kept 7 days: about 10,000 of each on an idle instance.
Paths are under src/FluentCMS.Core/.
Proposal
- Deliver in parallel per handler name, keeping order within a handler.
- Read the default locale through the site cache.
- Count only a drain job that is due as already queued.
- Skip the bookkeeping of the recurring drain when nothing is due, or shorten its retention.
Done together with #3282, which changes the same drain.
Acceptance
- A handler that blocks does not delay deliveries to other handlers
- Order within one handler is unchanged
- Delivering a batch reads the default locale once per site
- A kick after a failed drain is delivered without waiting for the recurring drain
- An idle instance does not accumulate drain rows
- Tests for each
Found in the code review of 17 Nov 2026.
- 主要语言
- C#
- 星标
- 569
- 派生
- 107
- 平均合并
- 2 小时 49 分钟
- 30 天内合并 PR
- 397
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
fluentcms/FluentCMS 的其他 Issue
-
area:host area:operations type:bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area:build security type:chore
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area:sdk security type:bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
area:content security type:bug
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
area:build type:bug
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
查看 fluentcms/FluentCMS 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 67/100
microsoft/microsoft-ui-reactor#1567 ·
维护者通常 1 天内回复
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
难度 2/5 1-3 小时 新手友好度 76/100
openclaw/openclaw-windows-node#2287 · 2 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
kind:ux needs-triage
难度 2/5 1-3 小时 新手友好度 66/100
elsa-workflows/elsa-foundation#4742 ·
维护者通常 1 天内回复
-
priority:P2
难度 2/5 1-3 小时 新手友好度 88/100