mirror of
https://github.com/bitbaum/substrata.git
synced 2026-12-04 22:19:07 +01:00
- 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