ArchAstro.Types.WorkflowWorkItem (archastro v0.2.0)

Copy Markdown

Externally executable work yielded by a durable workflow.

Summary

Types

t()

@type t() :: %ArchAstro.Types.WorkflowWorkItem{
  agent: String.t(),
  attempt_count: integer(),
  command_id: String.t(),
  created_at: DateTime.t(),
  execution: String.t(),
  id: String.t(),
  lease_expires_at: DateTime.t() | ArchAstro.Unset.t(),
  node_id: String.t(),
  payload: %{optional(String.t()) => ArchAstro.JSON.t()},
  routine_run: String.t() | ArchAstro.Unset.t(),
  status: String.t(),
  type: String.t(),
  updated_at: DateTime.t()
}

Functions

from_map(data)

@spec from_map(ArchAstro.JSON.object()) :: t()

matches?(value)

@spec matches?(ArchAstro.JSON.t()) :: boolean()

to_map(value)

@spec to_map(t()) :: ArchAstro.JSON.object()