Nous.Workflow.Checkpoint (nous v0.15.8)

View Source

Checkpoint for suspending and resuming workflow execution.

When a workflow is paused (via hook, atomics signal, or human checkpoint), a checkpoint captures the full execution state so the workflow can be resumed later.

Fields

FieldDescription
workflow_idGraph ID
run_idUnique run identifier
node_idNode where execution paused
stateFull workflow state at pause point
status:suspended or :completed or :failed
reasonWhy the workflow was paused
created_atWhen checkpoint was created

Summary

Functions

Create a new checkpoint from execution context.

Types

t()

@type t() :: %Nous.Workflow.Checkpoint{
  created_at: DateTime.t(),
  node_id: String.t() | nil,
  reason: term(),
  run_id: String.t(),
  state: Nous.Workflow.State.t(),
  status: :suspended | :completed | :failed,
  workflow_id: String.t()
}

Functions

new(attrs)

@spec new(map()) :: t()

Create a new checkpoint from execution context.