From 3b9b8047e40746e91d2e752517453c191ef32805 Mon Sep 17 00:00:00 2001 From: wooo Date: Thu, 18 Jun 2026 12:56:29 +0800 Subject: [PATCH] fix: restore world cup seed entrypoint --- .../backend/app/analytics/worldcup_seed.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 platform/backend/app/analytics/worldcup_seed.py diff --git a/platform/backend/app/analytics/worldcup_seed.py b/platform/backend/app/analytics/worldcup_seed.py new file mode 100644 index 0000000..4500f0b --- /dev/null +++ b/platform/backend/app/analytics/worldcup_seed.py @@ -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()