微信小程序页面迁移校验之前 P5任务处理之前

This commit is contained in:
Neo
2026-03-09 01:19:21 +08:00
parent 263bf96035
commit 6e20987d2f
1112 changed files with 153824 additions and 219694 deletions

View File

@@ -236,6 +236,16 @@ async def sync_check(
backend_codes = {t.code for t in ALL_TASKS}
# ETL 侧存在但后端故意不注册的任务(一次性初始化 / 尚未上线)
# 从 etl_only 差集中排除,避免同步检查误报
ETL_ONLY_EXPECTED: set[str] = {
"INIT_ODS_SCHEMA", # 一次性ODS schema 初始化
"INIT_DWD_SCHEMA", # 一次性DWD schema 初始化
"INIT_DWS_SCHEMA", # 一次性DWS schema 初始化
"SEED_DWS_CONFIG", # 一次性DWS 配置种子数据
"DWS_ASSISTANT_ORDER_CONTRIBUTION", # DWS 任务,后端暂未注册
}
try:
result = subprocess.run(
[sys.executable, "-c",
@@ -257,7 +267,7 @@ async def sync_check(
)
backend_only = sorted(backend_codes - etl_codes)
etl_only = sorted(etl_codes - backend_codes)
etl_only = sorted((etl_codes - backend_codes) - ETL_ONLY_EXPECTED)
return SyncCheckResponse(
in_sync=len(backend_only) == 0 and len(etl_only) == 0,