Feature/extraction reconciliation worker#35
Merged
Conversation
Introduces JournalEntryExtractionCandidate, find_entries_missing_or_failed_extraction, and delete_failed_if_present on JournalEntryExtractionRepository to support the upcoming reconciliation worker. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Finds entries missing an extraction record or with status=failed, clears any failed row, then delegates to the runner. Continues processing remaining candidates on per-entry errors. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Supports FROID_EXTRACTION_WORKER_ENABLED, FROID_EXTRACTION_WORKER_BATCH_SIZE, and FROID_EXTRACTION_WORKER_INTERVAL_SECONDS. Defaults to disabled, batch=20, interval=300s. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
run_once() drives one backfill cycle; run_forever() loops with a configurable interval. Logs cycle outcomes and handles repository errors gracefully. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds FROID_EXTRACTION_WORKER_ENABLED/BATCH_SIZE/INTERVAL_SECONDS env vars and CLI flags. Spawns the worker at startup when enabled; logs a warning if OPENAI_API_KEY is missing. Updates .env.example with the new variables. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds model() and prompt_version() to JournalEntryExtractionRunner and delegates through ExtractionBackfillService to the worker startup log, matching the pattern used by EmbeddingReconciliationWorker. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…pattern run_once now returns Result, with run_forever handling the error — matching the structure of EmbeddingReconciliationWorker. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
No description provided.