perf(web): centralize batch handoff rotation
Some checks failed
M6 deployable RC / quick (push) Has been cancelled
M6 deployable RC / chromium (push) Has been cancelled
M6 deployable RC / release (push) Has been cancelled

This commit is contained in:
mes123456
2026-09-03 15:50:39 +08:00
parent d602a13e2b
commit 07e63efa25
6 changed files with 78 additions and 30 deletions

View File

@@ -148,14 +148,6 @@ try {
break;
}
const before = currentTask();
const context = run(process.execPath, ["tools/web/check-wbv2-context-cache.mjs", "--task", before.task]);
appendLog(`preflight task=${before.task} contextExit=${context.code}`);
if (context.code !== 0) {
recordFailure(root, { task: before.task, phase: "supervisor", reason: "preflight_failed", childExit: context.code });
writeCheckpoint({ state: "blocked", iteration, current: before, reason: "preflight_failed", contextExit: context.code });
exitCode = 2;
break;
}
writeCheckpoint({ state: "running", iteration: iteration + 1, before, child: childArgs.join(" ") });
const child = run(process.execPath, childArgs);
appendLog(`child task=${before.task} exit=${child.code}\n${child.output}`);