mix accrue.webhooks.replay (accrue v1.0.0)

Copy Markdown View Source

Requeue dead-lettered webhook events from the command line.

Thin wrapper over Accrue.Webhooks.DLQ so ops engineers can replay events without dropping into iex -S mix.

Usage

mix accrue.webhooks.replay <event_id>
mix accrue.webhooks.replay --since 2026-04-01 --type invoice.payment_failed
mix accrue.webhooks.replay --since 2026-04-01 --type invoice.payment_failed --dry-run
mix accrue.webhooks.replay --all-dead --yes

Flags

  • --since DATE — only events on/after the given ISO date (UTC midnight)
  • --until DATE — only events on/before the given ISO date (UTC midnight)
  • --type EVENT_TYPE — restrict by Stripe event type (e.g. invoice.payment_failed)
  • --dry-run — report row count without mutation
  • --all-dead — bulk replay; prompts for confirmation when count > 10 unless --yes
  • --yes — skip confirmation prompts (CI / non-interactive use)
  • --force — bypass dlq_replay_max_rows cap