mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-08 15:51:06 +00:00
fix(ci): repair zalouser sdk path and exec timeout kill
This commit is contained in:
@@ -303,6 +303,14 @@ export async function runCommandWithTimeout(
|
||||
closeFallbackTimer = null;
|
||||
};
|
||||
|
||||
const killChild = () => {
|
||||
if (settled || typeof child?.kill !== "function") {
|
||||
return;
|
||||
}
|
||||
killIssuedByTimeout = true;
|
||||
child.kill("SIGKILL");
|
||||
};
|
||||
|
||||
const armNoOutputTimer = () => {
|
||||
if (!shouldTrackOutputTimeout || settled) {
|
||||
return;
|
||||
@@ -313,19 +321,13 @@ export async function runCommandWithTimeout(
|
||||
return;
|
||||
}
|
||||
noOutputTimedOut = true;
|
||||
if (typeof child.kill === "function") {
|
||||
killIssuedByTimeout = true;
|
||||
child.kill("SIGKILL");
|
||||
}
|
||||
killChild();
|
||||
}, Math.floor(noOutputTimeoutMs));
|
||||
};
|
||||
|
||||
const timer = setTimeout(() => {
|
||||
timedOut = true;
|
||||
if (typeof child.kill === "function") {
|
||||
killIssuedByTimeout = true;
|
||||
child.kill("SIGKILL");
|
||||
}
|
||||
killChild();
|
||||
}, timeoutMs);
|
||||
armNoOutputTimer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user