Coverage for app / services / scheduler / __init__.py: 100%
2 statements
« prev ^ index » next coverage.py v7.13.5, created at 2026-10-31 11:21 +0000
« prev ^ index » next coverage.py v7.13.5, created at 2026-10-31 11:21 +0000
1"""
2Background jobs on a timer — the scheduler the stack did not have.
4``jobs`` what work exists, one registered class each
5``runner`` when it happens: leader election, the tick, and the record of it
7Three features were built around the absence of this and say so in their own
8docstrings: dashboards refreshed on view, review-flag retention was enforced
9on read, and nothing could alert. The first two now have a runner; both keep
10their opportunistic path as the fallback for when the scheduler is disabled or
11this replica is not the leader.
12"""
14from .jobs import Job, JobResult, all_jobs, get_job, register_job # noqa: F401
15from .runner import ( # noqa: F401
16 Scheduler,
17 due_jobs,
18 get_scheduler,
19 run_named,
20 set_scheduler,
21 tick,
22)