mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-28 10:16:45 -04:00
fix: remove redundant process termination logic from deployment methods
This commit is contained in:
@@ -275,16 +275,6 @@ class Github extends Controller
|
|||||||
instant_remote_process(["docker rm -f {$deployment_uuid}"], $server);
|
instant_remote_process(["docker rm -f {$deployment_uuid}"], $server);
|
||||||
$activeDeployment->addLogEntry('Deployment container stopped.');
|
$activeDeployment->addLogEntry('Deployment container stopped.');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Kill running process if process ID exists
|
|
||||||
if ($activeDeployment->current_process_id) {
|
|
||||||
try {
|
|
||||||
$processKillCommand = "kill -9 {$activeDeployment->current_process_id}";
|
|
||||||
instant_remote_process([$processKillCommand], $server);
|
|
||||||
} catch (\Throwable $e) {
|
|
||||||
// Process might already be gone
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
// Silently handle errors during deployment cancellation
|
// Silently handle errors during deployment cancellation
|
||||||
}
|
}
|
||||||
@@ -555,15 +545,6 @@ class Github extends Controller
|
|||||||
$activeDeployment->addLogEntry('Deployment container stopped.');
|
$activeDeployment->addLogEntry('Deployment container stopped.');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Kill running process if process ID exists
|
|
||||||
if ($activeDeployment->current_process_id) {
|
|
||||||
try {
|
|
||||||
$processKillCommand = "kill -9 {$activeDeployment->current_process_id}";
|
|
||||||
instant_remote_process([$processKillCommand], $server);
|
|
||||||
} catch (\Throwable $e) {
|
|
||||||
// Process might already be gone
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
// Silently handle errors during deployment cancellation
|
// Silently handle errors during deployment cancellation
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -155,15 +155,6 @@ class DeleteResourceJob implements ShouldBeEncrypted, ShouldQueue
|
|||||||
$activeDeployment->addLogEntry('Helper container not yet started. Deployment will be cancelled when job checks status.');
|
$activeDeployment->addLogEntry('Helper container not yet started. Deployment will be cancelled when job checks status.');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Kill running process if process ID exists
|
|
||||||
if ($activeDeployment->current_process_id) {
|
|
||||||
try {
|
|
||||||
$processKillCommand = "kill -9 {$activeDeployment->current_process_id}";
|
|
||||||
instant_remote_process([$processKillCommand], $server);
|
|
||||||
} catch (\Throwable $e) {
|
|
||||||
// Process might already be gone
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (\Throwable $e) {
|
} catch (\Throwable $e) {
|
||||||
// Silently handle errors during deployment cancellation
|
// Silently handle errors during deployment cancellation
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user