Skip to main content

Module background

Module background 

Source
Expand description

Background tasks. A tiny runner that spawns one tokio task per recurring job. Kept simple on purpose — we don’t ship a cron DSL, just “run this every N seconds”.

Functions§

spawn_housekeeping
Spin up the standard housekeeping tasks. Call this once during app startup. Returns immediately — the tasks run forever.
spawn_session_sweeper
Periodic maintenance loop — every 10 minutes, sweep: