Repository navigation
fix: make bulk Scan now obey the scan window and manual pause - #253
Merged
Merged
Conversation
A bulk Scan now force-scanned every title, and forced scans ignored both the scan window and Pause (the next claim resumed the scanner), so a 234-title batch ran on for hours after the window closed. force_scan now has two levels: FORCE_NOW (one title) may still run outside the window; FORCE_QUEUED (several titles, a show, a library) jumps the queue but waits for the window and stops when it ends. POST /api/scan/pause sets a persisted pause, optionally until a local HH:MM, that stops every scan including forced ones and lifts itself. Closes #252 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nazmolla
force-pushed
the
fix/scan-window-bulk-force
branch
from
December 5, 2026 00:44
b939f50 to
dda4e9f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FORCE_QUEUEDvsFORCE_NOWindatabase.py).POST /api/scan/pausesets a persisted manual pause (optional{"until": "HH:MM"}) that stops every scan, forced ones included, survives restarts and lifts itself;GET /api/scan/queuereportsmanual_pauseandpaused_until.Closes #252
Test plan
pytest tests/— 1248 passed, with new regression tests for the window, the pause and the force levelsvitest— 236 passed🤖 Generated with Claude Code