Durable.Storage.Schemas.StepExecution (Durable v2.0.2)
View SourceEcto schema for step execution records.
Each step execution represents a single execution attempt of a workflow step, tracking its status, timing, and captured logs.
Summary
Functions
Appends logs to an existing step execution.
Creates a changeset for inserting a new step execution.
Creates a changeset for completing step execution.
Creates a changeset for a step execution that ended without completing:
:failed, :cancelled when the step returned {:cancel, reason}, or
:snoozed when it returned {:snooze, ms}.
Creates a changeset for starting step execution.
Types
@type status() ::
:pending | :running | :completed | :failed | :waiting | :cancelled | :snoozed
@type t() :: %Durable.Storage.Schemas.StepExecution{ __meta__: term(), attempt: integer(), child_workflow_id: term(), compensation_for: String.t() | nil, completed_at: DateTime.t() | nil, duration_ms: integer() | nil, error: map() | nil, id: Ecto.UUID.t(), input: map() | nil, inserted_at: DateTime.t(), is_compensation: boolean(), logs: [map()], output: map() | nil, started_at: DateTime.t() | nil, status: status(), step_name: String.t(), step_type: String.t(), updated_at: DateTime.t(), workflow: term(), workflow_id: Ecto.UUID.t() }
Functions
Appends logs to an existing step execution.
Creates a changeset for inserting a new step execution.
Creates a changeset for completing step execution.
Creates a changeset for a step execution that ended without completing:
:failed, :cancelled when the step returned {:cancel, reason}, or
:snoozed when it returned {:snooze, ms}.
Creates a changeset for starting step execution.