Skip to content

fix(message): enforce outbound queue capacity and horizon - #36

Merged
Neup123 merged 1 commit into
mainfrom
fix/outbound-queue-capacity-worker
Sep 23, 2026
Merged

Neup123 merged 1 commit into
mainfrom
fix/outbound-queue-capacity-worker

Conversation

@Neup123

@Neup123 Neup123 commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Fixes #35\n\n## What changed\n- enforce sent + pending/processing capacity for instance and recipient minute/day limits\n- enforce unique new/dormant outreach daily capacity\n- reject a new queued item when its calculated send time is more than the configurable queue-tail gap\n- add OUTBOUND_QUEUE_MAX_TAIL_GAP_SECONDS (default 120)\n- return detailed 429 capacity/horizon fields\n- add worker delivery/reschedule/failure logs\n- add regression tests and documentation\n- bump Evolution API to 5.5.1\n\n## Live diagnosis\nThe v5.5.0 worker did run at the due time. It delivered one of 60 queued outreach messages and rescheduled 59 after the current outreach quota allowed only one slot. The primary defects were over-admission and poor observability.\n\n## Verification\n- npm run test:outbound-queue\n- npm run test:outbound-safety\n- npm run lint:check\n- npm run build\n- database-backed test runs in CI with provisioned PostgreSQL

@Neup123 Neup123 changed the title fix(message): enforce outbound queue capacity fix(message): enforce outbound queue capacity and horizon Sep 23, 2026
@Neup123
Neup123 force-pushed the fix/outbound-queue-capacity-worker branch from 9ae494f to c046947 Compare September 23, 2026 13:10
@Neup123
Neup123 merged commit dca2b04 into main Sep 23, 2026
4 checks passed
@Neup123
Neup123 deleted the fix/outbound-queue-capacity-worker branch September 23, 2026 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Outbound queue exceeds configured capacity and due messages remain pending

1 participant