Skip to content

Commit 501cffd

Browse files
added failed workflow in ISLastReleaseStopType method (#5005)
1 parent f87cfc4 commit 501cffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/app/AppListingService.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ func (impl AppListingServiceImpl) ISLastReleaseStopType(appId, envId int) (bool,
424424
impl.Logger.Errorw("error in getting latest wfr by pipelineId", "err", err, "cdWorkflowId", override.CdWorkflowId)
425425
return false, err
426426
}
427-
if slices.Contains([]string{pipelineConfig.WorkflowInitiated, pipelineConfig.WorkflowInQueue}, cdWfr.Status) {
427+
if slices.Contains([]string{pipelineConfig.WorkflowInitiated, pipelineConfig.WorkflowInQueue, pipelineConfig.WorkflowFailed}, cdWfr.Status) {
428428
return false, nil
429429
}
430430
return models.DEPLOYMENTTYPE_STOP == override.DeploymentType, nil

0 commit comments

Comments
 (0)