Skip to main content

Crate stormchaser_engine

Crate stormchaser_engine 

Source
Expand description

Core execution and orchestration engine for Stormchaser workflows.

This crate contains the logic to execute steps, evaluate HCL expressions, handle state transitions, and manage telemetry.

Modules§

artifact
Artifact management and backend integrations.
db
Database interaction layer.
git_cache
Git caching and cloning utilities.
handler
Event handling and dispatching.
hcl_eval
HCL expression evaluation and context building.
hitl
Human-In-The-Loop (HITL) manual approval handling.
junit
JUnit test report parsing and aggregation.
nats
NATS JetStream integration for pub/sub events.
persistence
Database persistence for workflow and step models.
resource_utils
Utilities for parsing resources like CPU and Memory.
s3
S3 backend storage implementation.
secrets
Secrets management interfaces and backends.
stdlib
step_machine
State machine for individual steps.
telemetry
OpenTelemetry tracing and metrics initialization.
wasm
WebAssembly module execution utilities.
workflow_machine
State machine for full workflow runs.

Statics§

RUNS_COMPLETED
Counter metric for the total number of successfully completed workflow runs.
RUNS_FAILED
Counter metric for the total number of failed workflow runs.
RUNS_STARTED
Counter metric for the total number of started workflow runs.
STEPS_COMPLETED
Counter metric for the total number of successfully completed workflow steps.
STEPS_FAILED
Counter metric for the total number of failed workflow steps.
STEPS_STARTED
Counter metric for the total number of started workflow steps.
STEP_DURATION
Histogram metric for the duration of step executions in seconds.

Functions§

parse_duration
Parse duration.