From 57fae7385389351ba0791d3fea928159ef7dd2c8 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Wed, 5 Aug 2026 23:54:32 -0600 Subject: [PATCH] Update packages/server/src/utils/schedules/utils.ts Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> --- packages/server/src/utils/schedules/utils.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/server/src/utils/schedules/utils.ts b/packages/server/src/utils/schedules/utils.ts index 40bc0816c..e81f9a582 100644 --- a/packages/server/src/utils/schedules/utils.ts +++ b/packages/server/src/utils/schedules/utils.ts @@ -118,7 +118,8 @@ export const runCommand = async (scheduleId: string) => { "This feature is not available in the cloud version.", ); writeStream.end(); - return { ...deployment, status: "running" as const }; + await updateDeploymentStatus(deployment.deploymentId, "error"); + return { ...deployment, status: "error" as const }; } writeStream.write( `docker exec ${containerId} ${shellType} -c ${command}\n`,