You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bound asynchronous mail submission and expose backpressure #725
Part of #722, step 2 (phase 2). A busy or stalled SMTP server can leave unlimited prepared emails waiting behind the async workers. Add opt-in per-Mailer queue capacity and explicit immediate-rejection or bounded-wait overflow behavior, independently of worker and connection-pool sizes. Preserve caller-owned executors, lazy simple batches, scheduling-failure observation and resource ownership. Expose content-free queue diagnostics and document the use case, Java API, properties, Spring and CLI configuration. Implement directly on codex/10.0.0; leave changes for review before commit. Historical demand: #656 and #85. The related deadline/cancellation step must not confuse timing out a completion future with stopping SMTP work.
A full queue reports MailSendRejectedException; use getAsyncQueueSnapshot() for queue activity and rejection counts. Java, properties, Spring and CLI configuration are covered in the Sending and execution guide.
Activity
feat(mailer): bound async work and drain accepted sends (#725)
docs(smtp): record accepted work and deferred cancellation
docs(smtp): explain send results and async backpressure
feat(mailer): integrate send deadlines and observer dispatch (#726)
docs(smtp): complete Phase 2 guidance and concurrency catalogue (#726)
bbottema commentedon Sep 11, 2026
Implemented for 10.0.0 as part of #722. Queue capacity and overflow handling are opt-in; existing defaults remain unbounded.
A full queue reports
MailSendRejectedException; usegetAsyncQueueSnapshot()for queue activity and rejection counts. Java, properties, Spring and CLI configuration are covered in the Sending and execution guide.