Jidoka.Workflow.Run (Jidoka v0.9.0)

Copy Markdown View Source

Reconnectable public view of one background workflow run.

Summary

Functions

Returns the supported background run statuses.

Returns true for a terminal background run.

Types

status()

@type status() ::
  :pending | :running | :completed | :failed | :hibernated | :recoverable

t()

@type t() :: %Jidoka.Workflow.Run{
  error: term(),
  event_count: non_neg_integer(),
  id: String.t(),
  outcomes: map(),
  output: term(),
  status: status(),
  workflow_id: String.t()
}

Functions

statuses()

@spec statuses() :: [status()]

Returns the supported background run statuses.

terminal?(run)

@spec terminal?(t()) :: boolean()

Returns true for a terminal background run.