Outbox.Pruner (Outbox v0.1.0-beta.1)

Copy Markdown View Source

Deletes old, dispatched outbox events.

Runs as an Oban cron worker on the Outbox.Oban instance (nightly by default). Retention is configurable via:

config :outbox, Outbox, retention_days: 30

Only events with dispatched_at IS NOT NULL are eligible for deletion. Undispatched events are never pruned regardless of age — if an event is sitting undispatched for 30+ days, that signals an operational problem the pruner should not mask.