mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-05 22:32:12 +00:00
fix(ci): repair zalouser sdk path and exec timeout kill
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user