Expand description
Background-job scheduler skeleton.
The host owns a single scheduler that drives every registered
crate::traits::background::BackgroundJobProvider. This module
ships the scheduler’s public API + persistent state record + a
SchedulerPersistence trait. The host-side Tokio driver
(crates/uni/src/scheduler.rs) wraps a loop that calls
tick_at(SystemTime::now()), dispatches the returned jobs through
the plugin registry, and forwards lifecycle transitions to the
configured persistence backend.
Structs§
- Memory
Persistence - In-memory
SchedulerPersistencebackend. Always returns an emptyload_all; every other call is a no-op. - Scheduler
- Host-side scheduler skeleton.
- Scheduler
Handle - Cooperative-cancel handle handed to job implementations.
- Scheduler
JobRecord - Persistable record of a scheduled job’s state.
Enums§
- Scheduler
JobStatus - Lifecycle state of one scheduled job.
- Scheduler
Persistence Error - Errors raised by
SchedulerPersistencebackends.
Traits§
- Scheduler
Control - Trait-object handle to a scheduler, for cross-crate callers that
can’t depend on the concrete host-side
SchedulerHosttype. - Scheduler
Persistence - Persistence backend for
Schedulerjob state.