Skip to content

Commit

Permalink
Add retry option to deployed services (#1865)
Browse files Browse the repository at this point in the history
  • Loading branch information
WangLiNaruto authored Aug 9, 2024
1 parent e5c990e commit 13cabc8
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,13 @@ public void rollbackOnDeploymentFailure(DeployTask deployTask,
DeployServiceEntity deployServiceEntity) {
log.info("Performing rollback of already provisioned resources.");
if (CollectionUtils.isEmpty(deployServiceEntity.getDeployResourceList())) {
log.info("No resources need to destroy.");
log.info("No resources need to destroy, the rollback task success.");
DeployResult rollbackResult = new DeployResult();
rollbackResult.setOrderId(deployTask.getOrderId());
rollbackResult.setServiceId(deployTask.getServiceId());
rollbackResult.setIsTaskSuccessful(true);
rollbackResult.setState(DeployerTaskStatus.ROLLBACK_SUCCESS);
deployResultManager.updateServiceOrderTaskWithDeployResult(rollbackResult, null);
return;
}
log.info("Rollback to destroy created resources of the service {}",
Expand Down

0 comments on commit 13cabc8

Please sign in to comment.