fix(reconciliation): worker 在对账接线时注册 reconciliation.run(CYWL-34) #49

Merged
zheromiku merged 1 commits from fix/t6-worker-handler-gate into main 2026-12-01 20:15:27 +08:00
Owner

候选 9dddda84 实测:批次能建、入队成功(jobs 有 pending 行),但 worker 从不认领——worker_heartbeats.job_types 里没有 reconciliation.run。

原因:该 handler 注册在 workerHandlers 的测试库取件块内,而这块在 !TEST_WEKNORA_ENABLED 时直接 return;只开 RECONCILIATION_ENABLED 的候选于是「API 接线、worker 空转」,批次停在 running 直到 6h 僵死回收。

修复:把注册移到早退之前,只依赖 reconciliationService(租户 Key 走知识库绑定),与旧取件/上传链路解耦。

验证:go build ./...、go test ./...(经 make verify 17 项 = 16 success + identity skipped)。契约未动。

候选 `9dddda84` 实测:批次能建、入队成功(`jobs` 有 pending 行),但 worker 从不认领——`worker_heartbeats.job_types` 里没有 `reconciliation.run`。 原因:该 handler 注册在 `workerHandlers` 的测试库取件块内,而这块在 `!TEST_WEKNORA_ENABLED` 时直接 `return`;只开 `RECONCILIATION_ENABLED` 的候选于是「API 接线、worker 空转」,批次停在 `running` 直到 6h 僵死回收。 修复:把注册移到早退之前,只依赖 `reconciliationService`(租户 Key 走知识库绑定),与旧取件/上传链路解耦。 验证:`go build ./...`、`go test ./...`(经 `make verify` 17 项 = 16 success + identity skipped)。契约未动。
zheromiku added 1 commit 2026-12-01 20:12:09 +08:00
候选(9dddda84)实测:批次能建、入队也成功(jobs 里有 pending 行),但 worker
从不认领——worker_heartbeats.job_types 里根本没有 reconciliation.run。
原因:该 handler 注册在 workerHandlers 的测试库取件块里,而这一块在
!TEST_WEKNORA_ENABLED 时直接 return,于是只开 RECONCILIATION_ENABLED 的候选
只有 API 接线、worker 空转,批次停在 running 直到 6h 僵死回收。

把注册移到那个早退之前:只依赖 reconciliationService(租户 Key 走知识库绑定),
与旧取件/上传链路解耦。
zheromiku merged commit b662520439 into main 2026-12-01 20:15:27 +08:00
Sign in to join this conversation.