Switch live pipeline to RapidAPI (Apify credits exhausted) - #15
Merged
Merged
Conversation
Apify credits are exhausted, so production now runs entirely on RapidAPI: - live_poll.yml gates and runs rapidapi_engine only (Apify step removed) - calendar refresh prefers RAPIDAPI_KEY with budget-aware 3-day horizon - rapidapi_engine scans 3 days, supports post-kickoff lookback, syncs upcoming - grade_results grades via RapidAPI matches-by-date (Apify optional fallback) - grade_results.yml uses RAPIDAPI_KEY only Co-authored-by: Tanam Sethi <sethit@tcd.ie>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
tanamsethi31
marked this pull request as ready for review
September 27, 2026 01:47
This branch was successfully deployed
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.
Summary
Apify credits are finished, so the production goals O/U pipeline now runs entirely on RapidAPI.
rapidapi_engineonly (Apify step removed)RAPIDAPI_KEYfor calendar refresh; budget-aware 3-day horizon (Understat still fills the 10-day dashboard preview)upcoming_fixtures.jsonmatches-by-date(Apify remains optional fallback when token is set)RAPIDAPI_KEYonlyBudget notes
RapidAPI free tier is 90 calls/month (hard cap at 100). Typical costs:
This limits how many matches get full analysis each month — the gate step still skips idle polls when nothing is in the live window.
Test plan
python3 scripts/calendar_test.py(includes RapidAPI calendar refresh)python3 scripts/grade_results_rapidapi_test.pypython3 scripts/grade_results_clv_test.pypython3 scripts/grade_results_by_id_test.pypython3 scripts/rapidapi_odds_parse_test.py