mix mailglass.reconcile (Mailglass v0.1.0)

Copy Markdown View Source

Manually trigger the same reconciliation sweep that Mailglass.Webhook.Reconciler 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 sweep without waiting for the next */5 * * * * cron tick.
  • System-cron invocation in Oban-less environments (e.g. 0,5,10,15,... * * * * cd /app && mix mailglass.reconcile).

Usage

mix mailglass.reconcile
mix mailglass.reconcile --tenant-id customer_a --batch-size 500

Options

  • --tenant-id — restrict to a single tenant (default: all tenants)
  • --batch-size — max orphans per sweep (default: 1000)

Emits the same [:mailglass, :webhook, :reconcile, :start | :stop | :exception] telemetry span as the Oban worker (telemetry metadata stays whitelist-conformant per D-23).

Exits with status 1 when the Mailglass.Webhook.Reconciler module is not compiled (Oban absent from deps).