perf(web): centralize batch handoff rotation
This commit is contained in:
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user