One slow handler stalls the outbox, and each delivery queries the default locale
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- C#
- Star
- 569
- Fork
- 107
- Merge trung bình
- 2 giờ 49 phút
- Pull request đã merge (30 ngày)
- 397
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fluentcms/FluentCMS
-
area:host area:operations type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:build security type:chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:sdk security type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:content security type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:build type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fluentcms/FluentCMS
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
microsoft/microsoft-ui-reactor#1567 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
clawsweeper:fix-shape-clear clawsweeper:queueable-fix clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster no-stale P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openclaw/openclaw-windows-node#2287 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kind:ux needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
elsa-workflows/elsa-foundation#4742 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100