Fix misleading docstring on _purge_old_jobs_loop
Lint / Python (flake8) (push) Successful in 42s
Lint / JS (eslint) (push) Successful in 7s
Security / Python Security (bandit) (push) Successful in 41s
Test / Python Tests (pytest) (push) Successful in 52s
Lint / Notify on failure (push) Has been skipped
Lint / Deploy (push) Successful in 3s

The comment claimed the function "runs daily event purge" — that
housekeeping is done by monitor.py's main loop, not here.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-14 11:06:28 -04:00
parent a34898b8e8
commit 0975dd007a
+1 -1
View File
@@ -64,7 +64,7 @@ _diag_rate: dict = {}
def _purge_old_jobs_loop(): def _purge_old_jobs_loop():
"""Background thread: remove stale diag jobs and run daily event purge.""" """Background thread: remove stale diagnostic jobs and mark stuck ones done."""
while True: while True:
time.sleep(120) time.sleep(120)
cutoff = time.time() - 600 cutoff = time.time() - 600