fix: bootstrap daily recommendation snapshots
Some checks failed
2026 World Cup Quant Platform - Production Deployment / Code Quality, Security Gate & Testing (push) Failing after 2m54s
2026 World Cup Quant Platform - Production Deployment / Deploy to Production VM via Gitea CD (push) Has been skipped

This commit is contained in:
ogt
2026-06-25 14:13:57 +08:00
parent f26def598f
commit 50ef2eac1d
2 changed files with 55 additions and 0 deletions

View File

@@ -25,6 +25,7 @@ from .analytics.daily_card_generator import (
recalibrate_daily_card_confidence_payload,
update_runtime_market_calibration,
)
from .analytics.worldcup_seed import seed_venues
from .analytics.localization import (
localize_city,
localize_country,
@@ -3670,6 +3671,8 @@ async def relay_redis_events() -> None:
@app.on_event('startup')
async def on_startup() -> None:
seed_summary = await seed_venues()
logger.info('World Cup seed/schema bootstrap completed: %s', seed_summary)
app.state.redis_listener = asyncio.create_task(relay_redis_events())