Expand description
hyperlane-plugin-scheduler
Background async interval and 5-field cron job scheduler for Hyperlane featuring lock-free overlap prevention, Tokio task panic isolation, atomic per-job metrics, and graceful shutdown.
Structs§
- Cron
Mask - Compiled 5-field UTC cron schedule represented as O(1) bitmasks.
- FnJob
Handler - Closure adapter implementing
JobHandler. - JobMetrics
- Lock-free atomic execution metrics for one registered background job.
- JobMetrics
Snapshot - Immutable point-in-time snapshot of
JobMetrics. - Scheduler
- Builder and registry for background interval and cron jobs.
- Scheduler
Handle - Handle to a running
Schedulersupporting metrics inspection and graceful shutdown.
Enums§
- JobSchedule
- Schedule kind controlling when a registered job executes.
- Scheduler
Error - Configuration or expression parsing error for
Scheduler.
Constants§
- CRON_
ALIAS_ DAILY - Cron alias expanding to daily (
0 0 * * *). - CRON_
ALIAS_ HOURLY - Cron alias expanding to hourly (
0 * * * *). - CRON_
ALIAS_ MONTHLY - Cron alias expanding to monthly (
0 0 1 * *). - CRON_
ALIAS_ WEEKLY - Cron alias expanding to weekly (
0 0 * * 0).
Traits§
- JobHandler
- Async background job handler trait executed by
Scheduler.