Start an interrupted enrich over instead of resuming it #57
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
epic:E1-foundation
epic:E2-correct-metrics
epic:E3-fast-jobs
epic:E4-cli
epic:E5-web-ui
epic:E6-history
good first issue
help wanted
invalid
question
sprint-tracking
story
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
ckreidl/screener#57
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
🤖 Claude: An interrupted or failed enrich starts over instead of resuming, so every ranking uses prices from a single run.
Decided in the M2 retro (#50), answering the open question in #55 about an age limit on reused quotes. A resumed enrich reuses checkpointed quotes however old they are, so one ranking can mix prices from different days, and "no quote" answers stay unpriced even after Yahoo starts quoting the ticker. Since #13, all of enrich takes about 17 s, so resuming saves only a few seconds. Sector lookups are cached in
sector_cacheas they happen, so a run that starts over keeps them anyway.This changes a #15 criterion ("enrich skips companies already priced in that job").
Acceptance criteria
Proposed. To be agreed in backlog refinement.
analyzedoes: it fetches every quote again and saves no quotes tojob_checkpoint.sector_cacheare not looked up again after an interrupted run.--restarthelp and the menu hints mention only refresh.reusedQuotesand thequote:<SYMBOL>entries), and its resume tests are replaced by a test showing a re-run after an interruption fetches every quote.CLAUDE.mdsays only refresh resumes.Definition of Done
bun testpasses; new logic has testsbun checkis clean andbun fmt --checkpassesCloses #<this issue>