Scrypath.Operator.RecoveryAction (scrypath v0.3.5)

Copy Markdown View Source

Explicit recovery action used by Scrypath operator APIs.

Recovery actions are opt-in. They carry the stable references needed to route retries, backfills, or reindexes through existing Scrypath write paths rather than backend-native admin commands.

Summary

Types

t()

@type t() :: %Scrypath.Operator.RecoveryAction{
  backend: module(),
  index: String.t() | nil,
  kind: :retry | :backfill | :reindex,
  mode: :inline | :manual | :oban | atom(),
  operation: :upsert | :delete | :unknown,
  reference: map(),
  schema: module()
}

Functions

new(attrs)

@spec new(keyword()) :: t()

retry(action, opts)

@spec retry(
  Scrypath.Operator.FailedWork.t() | t(),
  keyword()
) :: {:ok, map()} | {:error, term()}