Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

fix: remove redundant process termination logic from deployment methods

Andras Bacsai0b8d3d395edc
diff --git a/app/Http/Controllers/Webhook/Github.php b/app/Http/Controllers/Webhook/Github.php
index 2aee15a8db..a1fcaa7f5d 100644
--- a/app/Http/Controllers/Webhook/Github.php
+++ b/app/Http/Controllers/Webhook/Github.php
@@ -275,16 +275,6 @@ class Github extends Controller
instant_remote_process(["docker rm -f {$deployment_uuid}"], $server);
$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) {
// Silently handle errors during deployment cancellation
}
@@ -555,15 +545,6 @@ class Github extends Controller
$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) {
// Silently handle errors during deployment cancellation
}
diff --git a/app/Jobs/DeleteResourceJob.php b/app/Jobs/DeleteResourceJob.php
index ad707d3575..9ff70e53dc 100644
--- a/app/Jobs/DeleteResourceJob.php
+++ b/app/Jobs/DeleteResourceJob.php
@@ -155,15 +155,6 @@ class DeleteResourceJob implements ShouldBeEncrypted, ShouldQueue
$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) {
// Silently handle errors during deployment cancellation
}