Expand description
Conditional composite workload runner for Solti Tasks.
A chain selects exactly one current step.
Each step can choose one next step after success and one after failure.
ChainSpec::validate requires every declared step to be reachable from entry and rejects cycles.
The model is an outcome-directed acyclic chain rather than a parallel DAG scheduler.
The chain is carried through solti_model::TaskWorkload::Extension with CHAIN_API_VERSION and CHAIN_KIND.
ChainRunner builds every nested workload through a snapshotted solti_runner::RunnerCatalog and returns one outer taskvisor::TaskRef.
Taskvisor therefore applies timeout, restart, backoff, admission, cancellation, status, and history to the whole chain attempt.
Register leaf runners first, snapshot them into the chain runner, and then register the chain runner.
register_chain_runner performs the last two operations for the common case.
Structs§
- Chain
Runner - Runner that composes registered leaf workloads into one conditional chain.
- Chain
Spec - Validated desired state of a chain extension workload.
- Chain
Step - One executable step in a
ChainSpec. - Failure
Transition - Transition selected when a step fails.
Enums§
- Chain
Error - Error returned while constructing, validating, or decoding a chain.
- Failure
Mode - Failure-state behavior after following an
onFailuretransition.
Constants§
- CHAIN_
API_ VERSION - API group and version of the chain extension workload.
- CHAIN_
KIND - Kind of the chain extension workload.
Functions§
- is_
chain_ workload - Returns whether
workloadis the chain extension GVK owned by this crate. - register_
chain_ runner - Registers a chain runner after snapshotting every runner already registered.
Type Aliases§
- Chain
Result - Convenience result type for chain model operations.