Files
Cato 0d16ac0026 fix(science): enforce runtime budget and forward request abort signal (#339)
- Define SCIENCE_RUN_BUDGET_MS (200s) to keep hourly science feed fetches well within the 300s curl timeout of the systemd wrapper
- Forward request.signal from POST /api/cron/science to fetchScience
- Stop starting bottleneck queries and source fetches when the budget expires or signal is aborted
- Bound per-request fetch timeouts to remaining budget and abort immediately on signal
- Ensure research_science_runs always records completion (finished_at = now()) on early exit
- Add automated test verifying runtime budget enforcement and signal forwarding
2026-11-05 20:06:13 +01:00
..