diff --git a/backend/app/scheduler.py b/backend/app/scheduler.py index 987443c9..6a3b6ed7 100644 --- a/backend/app/scheduler.py +++ b/backend/app/scheduler.py @@ -233,8 +233,8 @@ def _iso(ts: datetime | None) -> str | None: def scheduler_snapshot(db) -> dict: """What the scheduler is doing, for the admin dashboard: each job's live state from this process - and its last run from `job_runs`, so a restart no longer blanks "when did it last run, and how - did it go". `running_here` is False where the scheduler runs no interval jobs + and its last runs from `job_runs`, so a restart no longer blanks "when did it last run, and how + did it go"; and the same for the ad-hoc runs users start on one target. `running_here` is False where the scheduler runs no interval jobs (SCHEDULER_ENABLED=false), so the UI can say so while still showing the DB-derived history, queue and quota.""" running_here = _scheduler is not None and settings.scheduler_enabled