Skip to content

Commit

Permalink
added failed workflow in ISLastReleaseStopType method (#5005)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashishdevtron authored Apr 29, 2024
1 parent f87cfc4 commit 501cffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/app/AppListingService.go
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ func (impl AppListingServiceImpl) ISLastReleaseStopType(appId, envId int) (bool,
impl.Logger.Errorw("error in getting latest wfr by pipelineId", "err", err, "cdWorkflowId", override.CdWorkflowId)
return false, err
}
if slices.Contains([]string{pipelineConfig.WorkflowInitiated, pipelineConfig.WorkflowInQueue}, cdWfr.Status) {
if slices.Contains([]string{pipelineConfig.WorkflowInitiated, pipelineConfig.WorkflowInQueue, pipelineConfig.WorkflowFailed}, cdWfr.Status) {
return false, nil
}
return models.DEPLOYMENTTYPE_STOP == override.DeploymentType, nil
Expand Down

0 comments on commit 501cffd

Please sign in to comment.