[05] Retire the database: db-less pipeline + /v3 + /v3/site (+ BACKEND_URL env config) - #23
Open
chondl wants to merge 8 commits into
Open
[05] Retire the database: db-less pipeline + /v3 + /v3/site (+ BACKEND_URL env config)#23chondl wants to merge 8 commits into
chondl wants to merge 8 commits into
Conversation
The noteworthy/upcoming DuckDB reads join matches and events, so they must resolve both from a single manifest generation. Capture base = _sync() once per query and pass it to _source, matching the base-threaded signature the atomic Parquet set introduced on duckdb-api.
…ndependent A4: when db-less mode seeds a cross-season EPA with no prior-year team_years (a partial/forgotten backfill), log a prominent warning and set a flag exposed via /info, instead of silently regressing every team to the rookie mean. Also move the historical parquet write out of the DISABLE_DB branch so db-less backfill still produces parquet.
The DuckDB read path for /v3/site noteworthy matches must match the SQLAlchemy path: offseason events (EventType.OFFSEASON) have modified rules, so their scores are excluded from the noteworthy-match leaderboards. Mirrors the exclusion in src/db/functions/noteworthy_matches.py. Harmless when no offseason events are present (the filter matches nothing to exclude).
The ETL self-trigger (update_curr_year_background, the freshness-ping probe) HTTP-calls BACKEND_URL to reach the data router. Hardcoded to upstream api.statbotics.io under PROD, a single-container deploy that serves all routers from one service (e.g. a staging mirror) sent its self-trigger to the wrong host and never ran ingestion. Read BACKEND_URL from env with the original default as fallback; the deploy sets it to the service's own URL. Verified on the staging mirror: with BACKEND_URL set to the mirror's own API, page-view pings now drive live ingestion (2026iri caught up to TBA in real time).
This was referenced Jul 19, 2026
Closed
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replacement for #11 (auto-closed by branch rename). Part of the cph-staging series.