mix mailglass.reconcile (Mailglass v1.0.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).

When Oban is absent, this task still performs the same reconcile sweep and serves as the maintenance fallback you can run manually or from system cron.