Commit c7d1dbf
committed
feat: implement Task DAG CLI system with parallel execution
This commit adds a comprehensive CLI interface for managing and executing
task DAGs (Directed Acyclic Graphs) with dependency resolution.
Features:
- DAG creation from YAML/JSON specification files
- Parallel execution with configurable concurrency limits
- Sequential execution mode with topological ordering
- Circular dependency detection during DAG validation
- Failure propagation with configurable modes (fail-fast, skip-dependents, continue)
- Task persistence and resume capability
- Multiple visualization formats (ASCII, Graphviz DOT, Mermaid)
- JSON, text, and compact output formats
CLI Commands:
- `dag create` - Create a new DAG from spec file
- `dag run` - Execute a DAG with parallel or sequential strategy
- `dag status` - Show DAG execution status
- `dag list` - List all stored DAGs
- `dag validate` - Validate DAG specification and detect cycles
- `dag graph` - Visualize DAG structure
- `dag delete` - Remove a stored DAG
- `dag resume` - Resume a partially executed DAG
Files added/modified:
- cortex-cli/src/dag_cmd.rs (new)
- cortex-cli/Cargo.toml (added cortex-agents and futures dependencies)
- cortex-cli/src/lib.rs (added dag_cmd module)
- cortex-cli/src/main.rs (added Dag command)1 parent 7fc3905 commit c7d1dbf
5 files changed
Lines changed: 1596 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
0 commit comments