Skip to content

Fix: Resolve infinite scan loop caused by problematic files hanging the worker during thumbnail generation.#21

Merged
hunter-read merged 1 commit into
mainfrom
9-new-stop-scan-button-isnt-stopping-the-scan
Apr 13, 2026
Merged

Fix: Resolve infinite scan loop caused by problematic files hanging the worker during thumbnail generation.#21
hunter-read merged 1 commit into
mainfrom
9-new-stop-scan-button-isnt-stopping-the-scan

Conversation

@hunter-read

Copy link
Copy Markdown
Owner

When a scan encountered a corrupt or unreadable file, the worker could hang for up to 6 minutes (60s thumbnail + 300s fitz timeout) before moving on. If the worker was killed during that window — by the OS, container, or uvicorn — the book record was never committed to the database. On the next startup scan, the same file would be encountered again with no record of the prior failure, causing the same hang, the same worker kill, and the same restart — indefinitely

@hunter-read hunter-read linked an issue Apr 13, 2026 that may be closed by this pull request
@hunter-read hunter-read merged commit 694b70a into main Apr 13, 2026
7 checks passed
@hunter-read hunter-read deleted the 9-new-stop-scan-button-isnt-stopping-the-scan branch April 13, 2026 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Stop Scan button isn't stopping the scan

1 participant