SquidMesh.Persistence.Run (squid_mesh v0.1.0-alpha.7)

Copy Markdown View Source

Persisted workflow run state.

A run is the top-level durable record for one workflow execution. It stores the workflow identity, the initial workflow payload, the current step pointer, and any replay lineage needed for later inspection or recovery.

Summary

Functions

Builds a changeset for persisted workflow run state.

Types

status()

@type status() :: String.t()

t()

@type t() :: %SquidMesh.Persistence.Run{
  __meta__: term(),
  context: term(),
  current_step: term(),
  id: term(),
  input: term(),
  inserted_at: term(),
  last_error: term(),
  replayed_from_run: term(),
  replayed_from_run_id: term(),
  status: term(),
  step_runs: term(),
  trigger: term(),
  updated_at: term(),
  workflow: term()
}

Functions

changeset(run, attrs)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Builds a changeset for persisted workflow run state.