fix: restore world cup seed entrypoint
Some checks failed
2026 World Cup Quant Platform - Production Deployment / Deploy to Production VM via Gitea CD (push) Has been cancelled
2026 World Cup Quant Platform - Production Deployment / Code Quality, Security Gate & Testing (push) Has been cancelled

This commit is contained in:
wooo
2026-06-18 12:56:29 +08:00
parent 0bcc5c2e0d
commit 3b9b8047e4

View File

@@ -0,0 +1,22 @@
"""Production-safe seed compatibility entrypoint.
The current platform ingests World Cup fixtures, odds, calendar caches, and news
through scheduled workers. This module intentionally does not create synthetic
match rows; it only keeps the Docker Compose dependency gate idempotent so the
runtime services can start after a clean deployment.
"""
from __future__ import annotations
import os
def main() -> None:
database_url = os.getenv("DATABASE_URL", "")
if not database_url:
raise RuntimeError("DATABASE_URL is required for the seed compatibility gate.")
print("worldcup_seed compatibility gate passed; live workers own data ingestion.")
if __name__ == "__main__":
main()