mirror of https://github.com/openclaw/openclaw.git
fix(ci): repair zalouser sdk path and exec timeout kill
This commit is contained in:
parent
ca99ad0af8
commit
f4fa53de3f
|
|
@ -5,7 +5,7 @@ export type {
|
|||
ChannelGroupContext,
|
||||
ChannelMessageActionAdapter,
|
||||
} from "openclaw/plugin-sdk/channel-contract";
|
||||
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-plugin-common";
|
||||
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
|
||||
export type { ChannelPlugin } from "openclaw/plugin-sdk/core";
|
||||
export {
|
||||
DEFAULT_ACCOUNT_ID,
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue