Expand description
Cron-based scheduler that enqueues jobs on a recurring schedule.
The scheduler maintains a list of named tasks, each with a cron expression and an associated job handler. A background thread wakes every 30 seconds and enqueues jobs for any tasks whose cron expression matches the current minute (deduplicating within the same minute).
Structs§
- Scheduler
- The cron scheduler. Runs registered tasks on their configured schedules.
- Scheduler
Handle - Handle returned by
Scheduler::start()to stop the background thread. - Task
Info - Read-only information about a scheduled task, returned by
list_tasks().