Mark cancelled first, then kill container
This commit is contained in:
parent
12f2e761ef
commit
ada1f2abb7
1 changed files with 2 additions and 2 deletions
|
@ -1513,11 +1513,11 @@ App::patch('/v1/functions/:functionId/deployments/:deploymentId/builds/:buildId'
|
|||
throw new Exception(Exception::BUILD_NOT_FOUND);
|
||||
}
|
||||
|
||||
$build = $dbForProject->updateDocument('builds', $build->getId(), $build->setAttribute('status', 'cancelled'));
|
||||
|
||||
$executor = new Executor(App::getEnv('_APP_EXECUTOR_HOST'));
|
||||
$deleteBuild = $executor->deleteRuntime($project->getId(), $deploymentId . "-build");
|
||||
|
||||
$build = $dbForProject->updateDocument('builds', $build->getId(), $build->setAttribute('status', 'cancelled'));
|
||||
|
||||
$queueForEvents
|
||||
->setParam('functionId', $function->getId())
|
||||
->setParam('deploymentId', $deployment->getId());
|
||||
|
|
Loading…
Reference in a new issue