Squidie.Step.Context (squidie v0.1.2)

Copy Markdown View Source

Durable runtime context passed to native Squidie steps.

The context intentionally exposes Squidie concepts only. It gives steps the current run identity, workflow module, step name, attempt number, and the durable run state available before the current attempt started.

Summary

Types

t()

@type t() :: %Squidie.Step.Context{
  attempt: pos_integer() | nil,
  claim_id: String.t() | nil,
  idempotency_key: String.t() | nil,
  run_id: Ecto.UUID.t(),
  runnable_key: String.t() | nil,
  state: map(),
  step: atom(),
  workflow: module()
}