From 6ec530043ee92b2662a45cc980ff4ed671b032da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Narciso=20E=2E=20N=C3=BA=C3=B1ez=20Arias?= Date: Thu, 6 Aug 2026 11:21:22 -0400 Subject: [PATCH] Merge pull request #4122 from Gabrielgvl/fix/server-schedule-pipefail fix: preserve server schedule failures through tee pipeline (cherry picked from commit 3e306e5dba30dbe75938afdd5e25ac8da1d824cd) [skip ci] --- packages/server/src/utils/schedules/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/utils/schedules/utils.ts b/packages/server/src/utils/schedules/utils.ts index e81f9a582..65d01afed 100644 --- a/packages/server/src/utils/schedules/utils.ts +++ b/packages/server/src/utils/schedules/utils.ts @@ -174,7 +174,7 @@ export const runCommand = async (scheduleId: string) => { const { SCHEDULES_PATH } = paths(true); const fullPath = path.join(SCHEDULES_PATH, appName || ""); const command = ` - set -e + set -euo pipefail echo "Running script" >> ${deployment.logPath}; bash -c ${fullPath}/script.sh 2>&1 | tee -a ${deployment.logPath} || { echo "❌ Command failed" >> ${deployment.logPath};