From 2f4ec9f35fd1850cf59bdcf812644dfb7945caf1 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Sat, 27 Sep 2025 02:21:02 -0600 Subject: [PATCH] fix(deployment): reintroduce deployment cancellation during server initialization - Added the call to initCancelDeployments back into the server initialization process to ensure that deployment cancellations are handled correctly in all environments. --- apps/dokploy/server/server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/dokploy/server/server.ts b/apps/dokploy/server/server.ts index d06ab38f1..eaf562695 100644 --- a/apps/dokploy/server/server.ts +++ b/apps/dokploy/server/server.ts @@ -43,7 +43,6 @@ void app.prepare().then(async () => { if (!IS_CLOUD) { setupDockerStatsMonitoringSocketServer(server); } - await initCancelDeployments(); if (process.env.NODE_ENV === "production" && !IS_CLOUD) { setupDirectories(); @@ -54,6 +53,7 @@ void app.prepare().then(async () => { await migration(); await initCronJobs(); await initSchedules(); + await initCancelDeployments(); await initVolumeBackupsCronJobs(); await sendDokployRestartNotifications(); }