Auto-watch drops file events that arrive while a scan is running #26

Open
opened 2026-10-18 16:23:37 +00:00 by jfro · 0 comments
Owner

From Nye's review of #17 (F6).

LibraryWatcher skips triggering a scan while the library is scanning, so a file added mid-scan (after discovery) isn't picked up until the next file event.

Fix: remember that an event arrived during a scan and trigger one more scan when it finishes (e.g. a pending flag checked by the watcher's debounce timer, or a re-arm after the scan completes).

From Nye's review of #17 (F6). `LibraryWatcher` skips triggering a scan while the library is scanning, so a file added mid-scan (after discovery) isn't picked up until the next file event. **Fix:** remember that an event arrived during a scan and trigger one more scan when it finishes (e.g. a pending flag checked by the watcher's debounce timer, or a re-arm after the scan completes).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/fuzzy_catalog#26
No description provided.