parsimony/internal/queue
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi d9012cc13a perf(queue): purge old failures at most every 5 minutes and read each body once per run
- RunOnce purged failed deliveries (a full scan) on every batch of 50: the Worker now
  does it at most once every 5 minutes, by the store clock; a failed purge is retried
  on the next run.
- Every recipient re-read the whole message from SQLite: a per-run map msgID -> body,
  filled once per message even under concurrency, is dropped when the run ends.
- Tests count purges across batches and after the interval, and body reads per message
  (including a missing body) through unexported hooks.
2026-11-10 11:51:26 +01:00
..
queue.go perf(queue): purge old failures at most every 5 minutes and read each body once per run 2026-11-10 11:51:26 +01:00
queue_test.go perf(queue): purge old failures at most every 5 minutes and read each body once per run 2026-11-10 11:51:26 +01:00