This chapter covers the core features and capabilities of Workflow Engine.
Follow this guide to get Workflow Engine up and running in your environment.
# Run a workflow
python src/workflow_engine.py --config examples/workflow_config.json
# Preview execution plan
python src/workflow_engine.py --config examples/workflow_config.json --dry-run
# Resume a failed workflow
python src/workflow_engine.py --config examples/workflow_config.json --resume workflow_state.json{
"name": "my-pipeline",
"max_workers": 4,
"tasks": [
{
"name": "build",
"command": "make build",
"depends_on": ["lint", "test"],
"condition": "",
"retry_limit": 2,
"timeout": 300
}
],
"on_complete": "echo 'Done!'",
"on_failure": "curl https://hooks.example.com/alert"
}| Field | Type | Default | Description |
|---|---|---|---|
name | string | "unnamed" | Workflow identifier |
max_workers | int | 4 | Max parallel task threads |
tasks[].name | string | required | Unique task name |
tasks[].command | string | required | Shell command to run |
tasks[].depends_on | list | [] | Task names this depends on |
tasks[].condition | string | "" | Python expression for conditional execution |
tasks[].retry_limit | int | 2 | Max retry attempts |
tasks[].timeout | int | 300 | Max seconds before timeout |
Get the full Workflow Engine and unlock everything.
Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.
Access all interactive tools with complete data, all workload profiles, and the full scenario library.
Downloadable source code, configuration files, and working examples from every chapter.
Free updates for life. Every new chapter, tool, and improvement included.