systemd unit para uvicorn API + cron/timer para scrapers + enrichment #7
Labels
No labels
area/api
area/auth
area/dashboard
area/db
area/frontend
area/llm
area/scrapers
meta
priority/critical
priority/high
priority/low
priority/medium
type/bug
type/feature
type/infra
type/refactor
type/security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
soberania-brasileira/digital#7
Loading…
Add table
Add a link
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?
Contexto
api.llm_stats:app) era iniciada vianohuppor sessão Claude em 12-abr — sem systemd unit, morre no reboot. Foi morta em 28-abr e não voltou.Tarefas
/etc/systemd/system/soberania-api.service:/etc/systemd/system/soberania-scrapers.service+.timer(diário 03:00):scripts/run_scrapers.pyque ENCADEA: pncp_full, transparencia, ceis_cnep, comprasgov/etc/systemd/system/soberania-enrich.service+.timer(cada 30 min):scripts/llm_enrich.pyem modo "process new contratos_ti_ids without enrichment"/etc/systemd/system/soberania-dashboard.service+.timer(diário 04:00, depois dos scrapers):/usr/local/bin/regen-dashboard.py(sucessor sustentável dofast_regen_dashboard.py)/auth/*e/api/*→ uvicorn :8081 (verificar se já há proxy_pass)Critério de aceite
Após
reboot, todos os serviços sobem sozinhos; após 24h de uptime, dashboard regerou ao menos 1×, scrapers rodaram 1×, enrichment processou ao menos 1 lote.