Current section
Files
Jump to
Current section
Files
lib/squid_mesh/run_step_state.ex
defmodule SquidMesh.RunStepState do
@moduledoc """
Public representation of one logical workflow step within a run.
This read model complements `SquidMesh.StepRun` by showing the declared step
graph together with the latest known execution state for each step.
"""
@type status :: :pending | :running | :completed | :failed | :waiting
@type t :: %__MODULE__{}
defstruct [
:step,
:status,
:depends_on,
:input,
:output,
:last_error,
:recovery,
:attempts,
:inserted_at,
:updated_at
]
end