TCRM Monitor
Task monitor unit for the TCRM project A task dependency management and execution library for Rust applications.
Features
- Task Dependency Management: Define task dependency graphs with validation
- Parallel Execution: Execute independent tasks concurrently while respecting dependencies
- Termination Control: Automatically terminate dependent tasks when dependents finish
- Event-Driven: Real-time task execution events for monitoring and logging
- Task Control: Stop, terminate specific tasks, and send stdin input during execution
- Stdin Support: Send input to tasks with stdin enabled
Installation
Add this to your Cargo.toml
:
[]
= { = "0.1.1" }
Quick Start
use HashMap;
use ;
use TaskConfig;
async
Examples
See the examples/
directory
Event Monitoring
Monitor task execution with real-time events:
use mpsc;
let = channel;
// Start monitoring in background
spawn;
// Execute with event monitoring
monitor.execute_all_direct.await;
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.