fix(deployment): correct deployment cancellation logic and ensure proper status update

- Updated the initCancelDeployments function to set the status of running deployments to 'cancelled' instead of 'error'.
- Reintroduced the call to initCancelDeployments in the server initialization process to ensure cancellations are handled correctly.
This commit is contained in:
Mauricio Siu
2025-09-27 02:20:07 -06:00
parent ac6bdf60ec
commit 6fa8f63277
2 changed files with 3 additions and 3 deletions

View File

@@ -43,6 +43,7 @@ void app.prepare().then(async () => {
if (!IS_CLOUD) {
setupDockerStatsMonitoringSocketServer(server);
}
await initCancelDeployments();
if (process.env.NODE_ENV === "production" && !IS_CLOUD) {
setupDirectories();
@@ -53,7 +54,6 @@ void app.prepare().then(async () => {
await migration();
await initCronJobs();
await initSchedules();
await initCancelDeployments();
await initVolumeBackupsCronJobs();
await sendDokployRestartNotifications();
}