feat(scraper): crawl a source that has never completed one #13
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
TJC/mealplan-mcp!13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/seed-first-crawl"
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?
Summary
A fresh deployment shipped an empty database and crawled nothing until its scheduled night. With the sources now staggered that is up to a week of the MCP server answering "no recipes" - deploy on a Monday and Gousto arrives Wednesday, HelloFresh the following Sunday.
The scraper now queues a crawl at startup for any source with no completed run.
The condition is on runs, not rows, which is what makes it safe to leave on:
Queued rather than run inline, so startup does not block on a crawl that takes hours. Config-gated with
Sources:<slug>:CrawlOnStartup, default true, soSources__hellofresh__CrawlOnStartup=falsedeploys quiet.Test plan
Queued a first crawl of goustoand... of hellofresh, two jobs in Hangfire, and the worker picked one up immediately