fix(deployments): use graceful shutdown instead of rm
This commit is contained in:
@@ -329,13 +329,8 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
|
|||||||
} else {
|
} else {
|
||||||
$this->write_deployment_configurations();
|
$this->write_deployment_configurations();
|
||||||
}
|
}
|
||||||
$this->execute_remote_command(
|
$this->application_deployment_queue->addLogEntry("Starting graceful shutdown container: {$this->deployment_uuid}");
|
||||||
[
|
$this->graceful_shutdown_container($this->deployment_uuid);
|
||||||
"docker rm -f {$this->deployment_uuid} >/dev/null 2>&1",
|
|
||||||
'hidden' => true,
|
|
||||||
'ignore_errors' => true,
|
|
||||||
]
|
|
||||||
);
|
|
||||||
|
|
||||||
ApplicationStatusChanged::dispatch(data_get($this->application, 'environment.project.team.id'));
|
ApplicationStatusChanged::dispatch(data_get($this->application, 'environment.project.team.id'));
|
||||||
}
|
}
|
||||||
@@ -1366,13 +1361,8 @@ class ApplicationDeploymentJob implements ShouldBeEncrypted, ShouldQueue
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->application_deployment_queue->addLogEntry("Preparing container with helper image: $helperImage.");
|
$this->application_deployment_queue->addLogEntry("Preparing container with helper image: $helperImage.");
|
||||||
$this->execute_remote_command(
|
$this->application_deployment_queue->addLogEntry("Starting graceful shutdown container: {$this->deployment_uuid}");
|
||||||
[
|
$this->graceful_shutdown_container($this->deployment_uuid);
|
||||||
'command' => "docker rm -f {$this->deployment_uuid}",
|
|
||||||
'ignore_errors' => true,
|
|
||||||
'hidden' => true,
|
|
||||||
]
|
|
||||||
);
|
|
||||||
$this->execute_remote_command(
|
$this->execute_remote_command(
|
||||||
[
|
[
|
||||||
$runCommand,
|
$runCommand,
|
||||||
|
Reference in New Issue
Block a user