Skip to content

fix(fuse): poll active jobs so .ingesting flags clear automatically#354

Merged
aaronsb merged 1 commit intomainfrom
fix/fuse-job-polling
Mar 2, 2026
Merged

fix(fuse): poll active jobs so .ingesting flags clear automatically#354
aaronsb merged 1 commit intomainfrom
fix/fuse-job-polling

Conversation

@aaronsb
Copy link
Owner

@aaronsb aaronsb commented Mar 2, 2026

Summary

  • FUSE driver used lazy polling — .ingesting flag files only cleared when explicitly read
  • Added background _poll_active_jobs() task (every 5s) that checks tracked jobs against the API
  • Terminal jobs (completed/failed/cancelled) are marked for removal and directory caches invalidated

Test plan

  • make test-fuse — 252 tests pass

The FUSE driver only checked job status when the .ingesting file was
explicitly read (lazy polling). Without that read, flags lingered
until the 1-hour stale timeout. Add a background task that polls the
API every 5 seconds for tracked jobs and clears terminal ones, so
file managers see flags disappear promptly after ingestion completes.
@aaronsb aaronsb merged commit 98396a3 into main Mar 2, 2026
3 checks passed
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.

1 participant