Mailglass.ProductionPreflight (Mailglass v2.4.1)

Copy Markdown View Source

Runs bounded, read-only production readiness checks for a Mailglass host.

run/1 intentionally returns every check result instead of raising on the first problem, so an operator can fix a complete configuration set before accepting traffic. It is never invoked during ordinary application boot.

Summary

Functions

Returns secret-safe readiness results for the configured production host.

Types

check()

@type check() :: %{id: check_id(), status: :passed | :failed, remediation: String.t()}

check_id()

@type check_id() ::
  :repo_access
  | :schema_access
  | :migration_version
  | :delivery_adapter
  | :webhook_signing
  | :outbound_queue
  | :payload_maintenance
  | :operator_mount

result()

@type result() :: %{status: :ready | :failed, checks: [check()]}

Functions

run(opts \\ [])

(since 2.4.1)
@spec run(keyword()) :: result()

Returns secret-safe readiness results for the configured production host.

The check only performs read-only database and runtime observations. It does not migrate a schema, start a queue, schedule maintenance, or alter routing.