fahricansecer
4bc51cfa99
fix(ai-engine): hoist ms_edge before score prediction branch to prevent UnboundLocalError
Deploy Iddaai Backend / build-and-deploy (push) Successful in 5s
2026-05-05 20:34:14 +03:00
fahricansecer
fdb8a5d0f0
fix(ai-engine): sync FEATURE_COLS with trained models (82→102 features)
...
Deploy Iddaai Backend / build-and-deploy (push) Successful in 6s
- Load feature columns dynamically from feature_cols.json
- Add 20 missing odds_*_present boolean flags to fallback list
- Fixes LightGBM 'features in data (82) != training data (102)' crash
2026-05-05 20:29:55 +03:00
fahricansecer
22596e69f2
fix(predictions): circuit breaker resilience + graceful degradation
...
Deploy Iddaai Backend / build-and-deploy (push) Successful in 27s
- Reset consecutiveFailures on cooldown expiry (half-open state)
so a single retry failure doesn't immediately re-open the circuit
- Exclude AI Engine app-level 500s from circuit breaker count
(only network/infra errors: timeout, 502, 503, 504, 429)
- Return null gracefully instead of throwing 503 when no cache exists
- Add DB fallback for non-cooldown AI Engine failures
- Remove blocking wait-and-retry that held requests for up to 20s
2026-05-05 20:19:25 +03:00
fahricansecer
f32badbd8f
fix(predictions): cooldown fallback cascade + circuit breaker tuning
...
Deploy Iddaai Backend / build-and-deploy (push) Successful in 27s
- Add 4-level fallback when AI circuit breaker fires cooldown:
1) In-memory cache (10min TTL)
2) DB stored prediction (no TTL filter)
3) DB cached prediction (with model version check)
4) Wait out cooldown + retry once (max 20s wait)
- Raise circuit breaker threshold from 3 to 5 consecutive failures
- Reduce cooldown duration from 30s to 15s for faster recovery
- Add extractCooldownMs helper to parse remaining ms from error detail
2026-05-05 20:11:19 +03:00
fahricansecer
5645b38f20
main
Deploy Iddaai Backend / build-and-deploy (push) Successful in 32s
2026-05-05 17:09:11 +03:00
fahricansecer
244d8f5366
feat(ai): expand training to 68K+ matches, add score model, backfill implied odds
...
Deploy Iddaai Backend / build-and-deploy (push) Successful in 6s
- extract_training_data.py: switch from top_leagues.json (23) to qualified_leagues.json (265)
- update_implied_odds.py: new script to backfill implied odds from real market data
- train_score_model.py: rewrite with v25 102-feature set + temporal split
- single_match_orchestrator.py: integrate ML score model with heuristic fallback
2026-05-05 16:04:00 +03:00
fahricansecer
9bb8f39bca
gg
Deploy Iddaai Backend / build-and-deploy (push) Successful in 2m45s
2026-05-05 14:06:20 +03:00
fahricansecer
7a1cf14e2f
Update matches.service.ts
Deploy Iddaai Backend / build-and-deploy (push) Successful in 28s
2026-05-05 10:47:00 +03:00
fahricansecer
62c797d299
Update matches.service.ts
Deploy Iddaai Backend / build-and-deploy (push) Successful in 29s
2026-05-05 10:13:23 +03:00
fahricansecer
34cc4a6cbb
Update matches.service.ts
Deploy Iddaai Backend / build-and-deploy (push) Successful in 30s
2026-05-05 01:04:56 +03:00
fahricansecer
27e96da31d
main
Deploy Iddaai Backend / build-and-deploy (push) Successful in 29s
2026-05-04 18:00:40 +03:00
fahricansecer
145a8b336b
fix(feeder): preserve pre-match odds when match goes live
...
Deploy Iddaai Backend / build-and-deploy (push) Successful in 29s
Live odds have missing selections (e.g. '1' key removed from Maç Sonucu
after kickoff), causing the AI model to produce wildly incorrect predictions
(e.g. 3.5% home win for Bristol City). Two guards added:
1. fetchOddsForMatches: Exclude live/finished matches from odds fetch query
2. processMatchOdds: Skip odds/lineups/sidelined overwrite if match already
has pre-match odds and is live/finished
2026-05-02 16:32:42 +03:00
fahricansecer
7a8960edb8
chore: remove debug checkpoint logs and temp SQL files
Deploy Iddaai Backend / build-and-deploy (push) Successful in 37s
2026-04-26 17:09:22 +03:00
fahricansecer
691c52f610
perf: replace Prisma relation queries with raw SQL for getExistingMatchIds and getMissingScopes - fixes Pi hang
Deploy Iddaai Backend / build-and-deploy (push) Successful in 39s
2026-04-26 17:07:19 +03:00
fahricansecer
bc461429f6
debug: add checkpoint timestamps to processDate for hang diagnosis
Deploy Iddaai Backend / build-and-deploy (push) Successful in 46s
2026-04-26 17:04:46 +03:00
fahricansecer
a338d02244
main
Deploy Iddaai Backend / build-and-deploy (push) Successful in 2m42s
2026-04-26 03:07:18 +03:00
fahricansecer
1623432039
fix: watchdog force-kill with SIGKILL fallback when process.exit is blocked
2026-04-26 02:27:51 +03:00
fahricansecer
4c7930e9d2
feat: add watchdog timer to detect and recover from hung API requests
Deploy Iddaai Backend / build-and-deploy (push) Successful in 27s
2026-04-25 11:20:30 +03:00
fahricansecer
ec463cb927
fix: make canvas import optional for ARM64 compatibility
2026-04-25 02:41:53 +03:00
fahricansecer
eab95c4e5c
Update feeder.service.ts
Deploy Iddaai Backend / build-and-deploy (push) Successful in 30s
2026-04-25 02:23:38 +03:00
fahricansecer
9027cc9900
v28
Deploy Iddaai Backend / build-and-deploy (push) Successful in 3m21s
2026-04-24 23:46:28 +03:00
fahricansecer
3875f2a512
Create v28-pro-max-architecture.md
Deploy Iddaai Backend / build-and-deploy (push) Successful in 27s
2026-04-24 02:30:26 +03:00
fahricansecer
300dceeb4b
Merge branch 'main' of https://gitea.bilgich.com/fahricansecer/iddaai-be
Deploy Iddaai Backend / build-and-deploy (push) Successful in 27s
2026-04-24 02:10:48 +03:00
fahricansecer
ad01976fb9
fix: lineup data normalization + tomorrow match sync + player field mapping
2026-04-24 02:09:58 +03:00
fahricansecer
6880eb92f5
Merge pull request 'v26-shadow' ( #4 ) from v26-shadow into main
...
Deploy Iddaai Backend / build-and-deploy (push) Successful in 27s
Reviewed-on: #4
2026-04-24 01:15:54 +03:00
fahricansecer
9e2edd590c
Merge branch 'main' into v26-shadow
2026-04-24 01:15:18 +03:00
fahricansecer
b5c2edf346
gg
2026-04-24 01:15:05 +03:00
fahricansecer
bf7473c1e7
Merge pull request 'fix: update version tags to v28 and temporarily disable cache for predictions' ( #3 ) from v26-shadow into main
...
Deploy Iddaai Backend / build-and-deploy (push) Successful in 31s
Reviewed-on: #3
2026-04-24 00:30:55 +03:00
fahricansecer
1f26a5bf2f
fix: update version tags to v28 and temporarily disable cache for predictions
2026-04-24 00:11:00 +03:00
fahricansecer
fb53fdf1df
Merge pull request 'v26-shadow' ( #2 ) from v26-shadow into main
...
Deploy Iddaai Backend / build-and-deploy (push) Successful in 2m51s
Reviewed-on: #2
2026-04-23 22:29:23 +03:00
fahricansecer
634204acf0
v28
2026-04-23 22:22:59 +03:00
fahricansecer
df428ed1e8
gg
2026-04-22 02:17:02 +03:00
fahricansecer
2ccd6831eb
gg
2026-04-21 16:53:56 +03:00
fahricansecer
1346924387
gg
2026-04-19 13:23:00 +03:00
fahricansecer
e4c74025e5
Merge pull request 'cron' ( #1 ) from cron into main
...
Deploy Iddaai Backend / build-and-deploy (push) Successful in 2m48s
Reviewed-on: #1
2026-04-16 17:22:36 +03:00
fahricansecer
c8e7e4e927
cr
2026-04-16 17:21:48 +03:00
Gitea Actions
c8fa4c442d
chore: add docker info
2026-04-16 12:20:56 +00:00
fahricansecer
0f917695dd
chore: add workflow
Check Docker Pi / check-docker (push) Successful in 6s
2026-04-16 15:20:42 +03:00
fahricansecer
249c57346e
first (part 4: residual files)
Deploy Iddaai Backend / build-and-deploy (push) Successful in 26s
2026-04-16 15:13:24 +03:00
fahricansecer
182f4aae16
first (part 3: src directory)
Deploy Iddaai Backend / build-and-deploy (push) Successful in 33s
2026-04-16 15:12:27 +03:00
fahricansecer
2f0b85a0c7
first (part 2: other directories)
Deploy Iddaai Backend / build-and-deploy (push) Failing after 18s
2026-04-16 15:11:25 +03:00
fahricansecer
7814e0bc6b
first (part 1: root files)
Deploy Iddaai Backend / build-and-deploy (push) Failing after 4s
2026-04-16 15:09:10 +03:00
fahricansecer
b4173c10bb
fix: copy top_leagues config files to Docker image and fix port mapping
Deploy Iddaai Backend / build-and-deploy (push) Failing after 4s
2026-04-16 09:08:58 +03:00
fahricansecer
117a3c1f96
docs: add critical database safety rules to prompt.md
2026-04-15 17:42:35 +03:00
fahricansecer
6b194314c4
refactor: simplify docker deployment without ssh acting as native socket executor
2026-04-15 17:02:29 +03:00
fahricansecer
7c65ffdd58
fix: use server password instead of ssh key for deployment
Deploy Iddaai Backend / deploy (push) Failing after 11s
2026-04-15 17:00:39 +03:00
fahricansecer
57b9c83597
feat: add gitea actions ci/cd pipeline for automatic deployment
Deploy Iddaai Backend / deploy (push) Failing after 4s
2026-04-15 16:50:50 +03:00