feat(nunciod): bounded-concurrency sync dispatcher with per-account timeout #366

Merged
KofTwentyTwo merged 1 commits from story/ws-c4-sync-dispatcher into dev 2026-07-31 22:58:30 +00:00
1 Commits
Author SHA1 Message Date
James Maes ce18ccd62a feat(nunciod): bounded-concurrency sync dispatcher with per-account timeout
Route every production account sync through one SyncDispatcher that caps
simultaneous syncs (NUNCIO_SYNC_CONCURRENCY, default 4), coalesces a
duplicate in-flight sync for the same account, applies a per-account
timeout (NUNCIO_SYNC_TIMEOUT, default 300s), and races in-flight syncs
against the shared shutdown signal. The client Mail.Sync RPC and the
daemon's CoreCommand sync consumer now share a single dispatcher instance
so one slow account can no longer head-of-line-block the others.

Refs #292
2026-07-31 17:55:31 -05:00