Update packages/server/src/utils/schedules/utils.ts

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Mauricio Siu
2026-08-05 23:54:32 -06:00
committed by GitHub
parent dd542994a4
commit 57fae73853
+2 -1
View File
@@ -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`,