Skip to content

fix(app): mark recording as processed when job fails#46

Merged
pasrom merged 4 commits intomainfrom
fix/mark-processed-on-error
Mar 19, 2026
Merged

fix(app): mark recording as processed when job fails#46
pasrom merged 4 commits intomainfrom
fix/mark-processed-on-error

Conversation

@pasrom
Copy link
Copy Markdown
Owner

@pasrom pasrom commented Mar 18, 2026

Problem

Failed jobs did not call markProcessed, so their recording files remained untracked on disk. When pressing "Start Watching" afterwards, recoverOrphanedRecordings picked them up and re-queued them — causing e.g. a "Empty transcript" error to be retried endlessly.

Fix

updateJobState now calls markProcessed for both .done and .error terminal states.

Test

Added testErrorJobIsMarkedProcessedSoRecoverySkipsIt which simulates the exact scenario: enqueue → fail → new queue instance must not recover the file.

pasrom added 4 commits March 18, 2026 21:48
Start Watching button showed 'Stop Watching' during manual recording
because isWatching only checked isActive. It now also requires
isManualRecording == false.
…covery

Failed jobs were not calling markProcessed, so their recording files
remained untracked. Starting Watch mode would recover and re-queue
them via recoverOrphanedRecordings.
@github-actions github-actions bot added the bug Something isn't working label Mar 18, 2026
@pasrom pasrom merged commit 755213b into main Mar 19, 2026
7 checks passed
@pasrom pasrom deleted the fix/mark-processed-on-error branch March 19, 2026 04:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant