<div align="center">
<img src="https://devhub.vip/pages/docs/img/hyperlane.png" alt="hyperlane-plugin-scheduler logo" height="120">
# hyperlane-plugin-scheduler
**Background Async Interval & 5-Field UTC Cron Job Scheduler Plugin**
[](https://crates.io/crates/hyperlane-plugin-scheduler)
[](https://docs.rs/hyperlane-plugin-scheduler)
[](https://github.com/hyperlane-dev/hyperlane/actions/workflows/rust.yml)
[](https://www.rust-lang.org)
[](../../LICENSE)
[Workspace Overview](../../README.md) · [Plugin Catalog](../README.md) · [API Docs](https://docs.rs/hyperlane-plugin-scheduler/latest/)
</div>
---
## Overview
`hyperlane-plugin-scheduler` runs reliable background async interval and 5-field UTC cron jobs inside [`hyperlane`](../../README.md) services with lock-free overlap protection, panic isolation, and graceful shutdown.
## Installation
```sh
cargo add hyperlane-plugin-scheduler
```
## Usage
```rust
use hyperlane_plugin_scheduler::{Scheduler, SchedulerHandle};
fn start_scheduler() -> SchedulerHandle {
let scheduler: Scheduler = Scheduler::default();
scheduler.start()
}
```
## Verification
```sh
cargo run -p hyperlane-cli -- fmt --check
cargo clippy -p hyperlane-plugin-scheduler --all-features --all-targets -- -D warnings
cargo test -p hyperlane-plugin-scheduler --all-features
```
## License
This project is licensed under the MIT License. See the [LICENSE](../../LICENSE) file for details.
## Contact
For inquiries, please contact the author at [root@devhub.vip](mailto:root@devhub.vip).