Move the store.ingest_enabled() gate inside the main try/except. Previously it sat outside as a standalone block: ingest_enabled() -> _load_pg_config() raises FileNotFoundError when config.yaml is absent/malformed, which escaped _persist_to_db, was caught by dispatch_task's outer except, and flipped a successful download to FAILED -- violating the hook's never-raise invariant. Now config errors print a [warn], record ok=False, and return silently. Co-Authored-By: Claude <noreply@anthropic.com>
24 KiB
24 KiB