Skip to main content

Crate hyperlane_plugin_scheduler

Crate hyperlane_plugin_scheduler 

Source
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§

CronMask
Compiled 5-field UTC cron schedule represented as O(1) bitmasks.
FnJobHandler
Closure adapter implementing JobHandler.
JobMetrics
Lock-free atomic execution metrics for one registered background job.
JobMetricsSnapshot
Immutable point-in-time snapshot of JobMetrics.
Scheduler
Builder and registry for background interval and cron jobs.
SchedulerHandle
Handle to a running Scheduler supporting metrics inspection and graceful shutdown.

Enums§

JobSchedule
Schedule kind controlling when a registered job executes.
SchedulerError
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.