Manually trigger the same retention sweep that
Mailglass.Webhook.Pruner runs on its Oban cron schedule.
Intended for:
- Adopters without Oban in their deps (the Application boot warning directs them here — see CONTEXT D-20).
- Ops engineers who want to run a prune sweep out-of-band.
- System-cron invocation in Oban-less environments
(e.g.
0 3 * * * cd /app && mix mailglass.webhooks.prune).
Usage
mix mailglass.webhooks.pruneReads Mailglass.Config :webhook_retention for the three retention
knobs (:succeeded_days, :dead_days, :failed_days). Each may be
a positive integer or :infinity to disable.
Emits [:mailglass, :webhook, :prune, :stop] telemetry with
%{succeeded_deleted: n, dead_deleted: m} measurements and
%{status: :ok} metadata per CONTEXT D-22 + D-23 whitelist.
Exits with status 1 when Mailglass.Webhook.Pruner is not compiled
(Oban absent from deps).