mix durable.doctor (Durable v0.1.0-rc)

View Source

Health check for a Durable instance. Surfaces the classes of stuck state that recovery doesn't always fix on its own:

  • zombies — :waiting workflows with no pending inputs or events
  • stale locks — :running workflows whose lock hasn't been refreshed for longer than stale_lock_timeout
  • compensation stragglers — :compensating workflows that never reached :compensated or :compensation_failed
  • disabled schedules — scheduled workflows auto-disabled after repeated failures

Pass --fix to invoke the adapter's recovery (same path the background StaleJobRecovery GenServer runs on its interval).

Usage

mix durable.doctor [--fix] [--name NAME]

Options

  • --fix - Run recovery for stale locks + zombies after reporting
  • --json - Emit the findings as JSON
  • --name NAME - The Durable instance name (default: Durable)