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.
This commit is contained in:
Mauricio Siu
2025-09-27 02:21:02 -06:00
parent b725861b55
commit 2f4ec9f35f

View File

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