hyperlane-plugin-scheduler 23.3.2

A background async interval and 5-field cron job scheduler plugin for the Hyperlane framework with lock-free overlap protection, Tokio panic isolation, atomic per-job metrics, and graceful shutdown.
Documentation
<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**

[![Crates.io Version](https://flat.badgen.net/crates/v/hyperlane-plugin-scheduler)](https://crates.io/crates/hyperlane-plugin-scheduler)
[![Docs.rs](https://img.shields.io/docsrs/hyperlane-plugin-scheduler?style=flat-square)](https://docs.rs/hyperlane-plugin-scheduler)
[![CI Status](https://img.shields.io/github/actions/workflow/status/hyperlane-dev/hyperlane/rust.yml?branch=master&style=flat-square&label=CI)](https://github.com/hyperlane-dev/hyperlane/actions/workflows/rust.yml)
[![Rust 2024](https://img.shields.io/badge/edition-2024-orange.svg?style=flat-square)](https://www.rust-lang.org)
[![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](../../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).