微信小程序页面迁移校验之前 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

@@ -152,7 +152,7 @@ error_categories: dict[str, list] = {}
for err in errors:
if "未知的任务类型" in err["line"]:
cat = "任务未注册"
elif "member_birthday_manual" in err["context"]:
elif "member_retention_clue" in err["context"] or "member_birthday_manual" in err["context"]:
cat = "FDW 表缺失(根因)"
elif "InFailedSqlTransaction" in err["context"]:
cat = "事务级联失败"
@@ -289,9 +289,7 @@ else:
w(f"| 类别 | 数量 | 说明 |")
w(f"|------|------|------|")
for cat, errs in error_categories.items():
if cat == "任务未注册":
desc = "`ODS_ASSISTANT_ABOLISH` 未在 `task_registry.py` 中注册"
elif cat == "FDW 表缺失(根因)":
if cat == "FDW 表缺失(根因)":
desc = "`fdw_app.member_birthday_manual` 关系不存在"
elif cat == "事务级联失败":
desc = "根因错误导致事务终止,后续 DWS 任务全部 `InFailedSqlTransaction`"
@@ -303,17 +301,7 @@ else:
w("### 错误详情")
w()
w("#### 错误 1ODS_ASSISTANT_ABOLISH 任务未注册")
w()
w("- 时间: 02:15:59")
w("- 错误: `ValueError: 未知的任务类型: ODS_ASSISTANT_ABOLISH`")
w("- 位置: `orchestration/task_registry.py:96`")
w("- 原因: `ODS_ASSISTANT_ABOLISH` 任务在后端任务注册表中标记为 `is_common=True`,但 ETL `task_registry` 中尚未注册该任务的实现类")
w("- 影响: 仅该任务失败,不影响其他任务执行")
w("- 建议: 完成 `assistant-abolish-cleanup` spec 的任务注册,或将后端注册表中该任务的 `is_common` 设为 `False`")
w()
w("#### 错误 2FDW 表缺失导致 DWS 级联失败(根因)")
w("#### 错误 1FDW 表缺失导致 DWS 级联失败(根因)")
w()
w("- 时间: 02:50:36")
w("- 根因: `UndefinedTable: 关系 \"fdw_app.member_birthday_manual\" 不存在`")