Skip to main content

Module workflow_simulation

Module workflow_simulation 

Source
Expand description

Workflow simulation (dry-run) engine.

Traces the execution path of a workflow DAG without actually running any tasks. Useful for pre-flight validation, capacity planning, cost estimation, and debugging complex conditional workflows.

The simulator walks the DAG in topological order, evaluates edge conditions against simulated outputs, and produces a detailed execution trace showing which nodes would run, be skipped, or potentially fail.

Structs§

EvaluatedCondition
Result of evaluating an edge condition during simulation.
SimulationConfig
Configuration for a simulation run.
SimulationReport
A simple simulation report produced by dry-running a crate::workflow::Workflow.
SimulationResult
Complete result of a simulation run.
SimulationSummary
Summary statistics from a simulation.
SimulationTraceEntry
A single entry in the simulation trace.
WorkflowDryRun
Dry-run simulator for crate::workflow::Workflow.
WorkflowSimulator
The workflow simulation engine.

Enums§

ConditionSource
How a condition was resolved.
SimulatedOutcome
Outcome of a simulated node execution.

Functions§

quick_simulate
Helper to create a simple simulation for a DAG.