Merge pull request #4122 from Gabrielgvl/fix/server-schedule-pipefail

fix: preserve server schedule failures through tee pipeline
This commit is contained in:
Narciso E. Núñez Arias 2026-08-06 11:21:22 -04:00 committed by GitHub
commit 3e306e5dba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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};