Synaptic.Runner (synaptic v0.2.6)
View SourceGenServer that executes a workflow definition, tracking context, waiting states, retries, history, PubSub events, and suspend/resume logic.
Summary
Functions
Returns a specification to start this module under a supervisor.
Types
@type state() :: %{ run_id: String.t(), workflow: module(), steps: [Synaptic.Step.t()], current_step_index: non_neg_integer(), context: map(), status: :running | :waiting_for_human | :completed | :failed | :stopped, waiting: map() | nil, history: [map()], retry_budget: map(), last_error: term(), async_tasks: %{ optional(pid()) => %{step: Synaptic.Step.t(), monitor_ref: reference()} } }