mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 06:10:45 +00:00
fix: silence cron exec completion noise
This commit is contained in:
committed by
Peter Steinberger
parent
017252e4f8
commit
bd60df3e53
@@ -291,6 +291,9 @@ function maybeNotifyOnExit(session: ProcessSession, status: "completed" | "faile
|
||||
const output = compactNotifyOutput(
|
||||
tail(session.tail || session.aggregated || "", DEFAULT_NOTIFY_TAIL_CHARS),
|
||||
);
|
||||
if (status === "failed" && session.exitReason === "manual-cancel" && !output) {
|
||||
return;
|
||||
}
|
||||
if (status === "completed" && !output && session.notifyOnExitEmptySuccess !== true) {
|
||||
return;
|
||||
}
|
||||
@@ -783,7 +786,7 @@ export async function runExecProcess(opts: {
|
||||
timeoutSec: opts.timeoutSec,
|
||||
});
|
||||
|
||||
markExited(session, exit.exitCode, exit.exitSignal, outcome.status);
|
||||
markExited(session, exit.exitCode, exit.exitSignal, outcome.status, exit.reason);
|
||||
maybeNotifyOnExit(session, outcome.status);
|
||||
if (!session.child && session.stdin) {
|
||||
session.stdin.destroyed = true;
|
||||
|
||||
Reference in New Issue
Block a user