Docket.Run.InterruptState (docket v0.1.1)

Copy Markdown View Source

Committed state of one interrupt on a Docket.Run.

An :open interrupt keeps its node paused (the node's public ID stays in run.pending_nodes); resolving it writes the resolution value to resume_channel and re-executes the node in the next superstep.

Summary

Types

status()

@type status() :: :open | :resolved

t()

@type t() :: %Docket.Run.InterruptState{
  created_at: DateTime.t() | nil,
  id: String.t(),
  metadata: map(),
  node_id: String.t(),
  resolved_at: DateTime.t() | nil,
  resume_channel: String.t(),
  schema: Docket.Schema.t() | nil,
  status: status()
}