微信小程序页面迁移校验之前 P5任务处理之前
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user