Skip to main content

Module scheduler

Module scheduler 

Source
Expand description

Host-side tokio-backed scheduler driver.

Wraps the runtime-free uni_plugin::scheduler::Scheduler primitive in a SchedulerHost that:

Per the M11 plan, the durable backend (writes through uni_system.background_jobs via the write-enabled execute_inner_query) lives downstream in uni-query; this module consumes only the SchedulerPersistence trait.

Structs§

SchedulerHost
Host-side scheduler driver.
SchedulerJobHost
Concrete JobHost implementation that lets built-in background jobs reach the storage manager and (after Uni::build finishes) the host UniInner for write-mode Cypher execution.

Constants§

DEFAULT_TICK_INTERVAL
Default driver tick interval — chosen to match the existing DeferralQueue ticker so the two background drivers cohabit on the same cadence.

Functions§

spawn_with_memory_persistence
Convenience constructor returning a SchedulerHost backed by an in-memory persistence — used by the default Uni::build path before the host wires a durable backend.