Render Cron Job fires
Every 5 minutes. Cloud-hosted, independent of any laptop or local session.
*/5 * * * *The deferred black box, now specified: a Render cron job runs a Python loop every 5 minutes, checks the generation queue, and for each waiting business calls a configured LLM/agent (model-agnostic — no vendor lock) using the ep044_group skill library and the shared image library, then commits the built site to ep_044_web_apps on GitHub and reports completion back. Four prerequisites are genuinely outstanding — three of them are hosting/data gaps found by inspecting the repo, not design choices.
Every 5 minutes. Cloud-hosted, independent of any laptop or local session.
*/5 * * * *Single run, exits when done. Container has Python + git.
generate_sites.pyGET the queue endpoint; returns 0..n businesses awaiting generation.
GET /api/internal/site-generation/queueEmpty queue → exit cleanly, no cost incurred. Otherwise iterate one-by-one.
Prevents two overlapping 5-minute runs double-generating the same site.
needs a lock fieldName, category, town, contact details — comes back with the queue response.
Tracked in git (35 files) — but the cron container still needs a way to fetch it.
skills/ep044_groupNot in git at all. 114 MB / 103 files, local-only. Nothing to fetch yet.
ep_044_web_apps/_imagesWhich provider(s), and a real API key with real per-run billing.
env configNo column exists on businesses to record who requested a chat widget.
needs migrationOne tool-calling loop; provider chosen by config, not hardcoded. No vendor SDK as the whole solution.
Agent follows the skill blueprint: writes HTML/CSS/JS, sources and verifies images.
Only for businesses that requested it — reuses the existing embed pattern.
assistant-embed.jsBlueprint's definition of done: every image loads, section counts met, no thin screens.
Writes into the existing per-business folder convention; GitHub Pages then serves it.
ep_044_web_apps/<slug>/POST businessId + the live URL; advances the stage to ready_for_preview.
POST …/completeSame run sends any outstanding preview-ready emails. Idempotent.
POST …/notify