Skip to main content

spawn_scheduler

Function spawn_scheduler 

Source
pub fn spawn_scheduler(
    databases: Arc<Databases>,
    interval_hours: u64,
    extraction_config: Option<ExtractionConfig>,
)
Expand description

Spawn a background task that runs a sweep every interval_hours. A value of 0 disables the scheduler (run the maintenance subcommand from cron instead). When an LLM is configured, each cycle also canonicalizes recent topics.