Trellis.DefinitionSummary (Trellis v0.1.0-alpha)

Copy Markdown View Source

A registered transform definition, as Trellis.definitions/1 lists it.

target_table is fully qualified (schema.table) and identifies the transform. created_at is when it was registered. backfill_failure is set while its build keeps failing, as in Trellis.Status. halt is set while the drain, or its build's merge, has halted on it: a Trellis.CaptureFailure of kind :halt, the definition :paused until the cause is fixed and it is resumed. Listing the definitions and looking for a halt is the health check for halts.

Summary

Types

t()

@type t() :: %Trellis.DefinitionSummary{
  backfill_failure: Trellis.BackfillFailure.t() | nil,
  created_at: DateTime.t(),
  halt: Trellis.CaptureFailure.t() | nil,
  status: Trellis.Status.status(),
  target_table: String.t()
}