CouncilEx.Runner (CouncilEx v0.1.0)

Copy Markdown View Source

Synchronous runner. Executes a compiled CouncilEx.Spec against an input and returns a CouncilEx.Result.

GenServer-supervised execution, PubSub events, and async start/await are Milestone 2 — built on top of this runner.

Summary

Types

opt()

@type opt() ::
  {:failure_mode, :continue | :fail_fast} | {:member_timeout_ms, pos_integer()}

Functions

resolve_retry(member_opts, round_opts, run_opts)

See CouncilEx.Runner.RoundExec.resolve_retry/3.

run(spec, input, opts)

@spec run(CouncilEx.Spec.t(), map(), [opt()]) ::
  {:ok, CouncilEx.Result.t()} | {:error, CouncilEx.Result.t()}