Is it possible to kill a build or deploy?
Platform.sh DevRel
Sometimes I push a commit and the build/deploy either takes a very long time, or it becomes permanently stuck. Am I able to do something to kill the process?
0
Comments
Basics
If a build or deployment is running longer than expected, it may be caused by one of the following:
Access the environment’s logs
First, determine if the build has completed and is attempting to deploy. Access the environment’s build logs with the Platform.sh CLI:
Alternatively, you can click on the
Pendingstatus icon on the Web UI to check its status.There should be a line similar to
If that message is not visible, the project is most likely in a state of a blocked build, and it will be required to create a support ticket to have the build killed.
Kill a stuck deployment
If the above message is visible, the project is in a stuck deployment.
SSH into the environment.
The long-running cron jobs on the environment can be found with the command
and once the long-running process has been identified (
<PID>), it can be killed with the commandYou can find additional information about stuck builds and deployments in the public documentation.
Interesting thanks. But if services are not accessible (ssh connection impossible) and deployment is still stuck, how to fix it?
I would like to add that to be able to access SSH 1st step was to do:
platform sshAfter that I followed the instructions and I was able to stop it
Updated the answer. Thanks!
You can vote for Cancel Source Operations over at next.platform.sh. This will include cancellable builds/deployments.
Please sign in to leave a comment.