docs.rs failed to build taskvisor-0.0.7
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
taskvisor-0.0.4
taskvisor
Event-driven task orchestration library for Rust.
📖 Features
- Observe lifecycle events (start / stop / failure / backoff / timeout / shutdown)
- Plug custom subscribers for logging, metrics, alerting
- Global concurrency limiting and graceful shutdown on OS signals
- Supervised task actors with restart/backoff/timeout policies
📦 Installation
Cargo.toml:
[]
= "0.0.7"
Optional features:
logging
enables the built-in [LogWriter
], (demo logger);
[]
= { = "0.0.7", = ["logging"] }
📝 Quick start
Minimal Example (No subscribers)
[]
= "0.0.7"
= { = "1", = ["macros", "rt-multi-thread", "time", "sync", "signal"] }
= { = "0.7", = ["rt"] }
= "1"
//! Minimal: single task, no subscribers.
use Duration;
use CancellationToken;
use *;
async
Minimal Example (Embedded subscriber)
[]
= { = "0.0.7", = ["logging"] }
= { = "1", = ["macros", "rt-multi-thread", "time", "sync", "signal"] }
= { = "0.7", = ["rt"] }
= "1"
//! Minimal with built-in LogWriter subscriber.
use Duration;
use CancellationToken;
use ;
async
Dynamic Tasks Example
[]
= "0.0.7"
= { = "1", = ["macros", "rt-multi-thread", "time", "sync", "signal"] }
= { = "0.7", = ["rt"] }
= "1"
//! Demonstrates how a running task can add another task dynamically.
use Arc;
use Duration;
use CancellationToken;
use ;
async
More Examples
Check out the examples directory for:
- basic_one_shot.rs: single one-shot task, graceful shutdown
- retry_with_backoff.rs: retry loop with exponential backoff and jitter
- dynamic_add_remove.rs: add/remove tasks at runtime via API
- custom_subscriber.rs: custom subscriber reacting to events
# basic / retry / dynamic do not require extra features
🤝 Contributing
We're open to any new ideas and contributions.
Found a bug? Have an idea? We welcome pull requests and issues.