From 501cffd24725d5532f893e8bf35c8ac4a65067f2 Mon Sep 17 00:00:00 2001 From: ashishdevtron <141303172+ashishdevtron@users.noreply.github.com> Date: Mon, 29 Apr 2024 19:01:15 +0530 Subject: [PATCH] added failed workflow in ISLastReleaseStopType method (#5005) --- pkg/app/AppListingService.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/app/AppListingService.go b/pkg/app/AppListingService.go index 181e96ceed..ed114760dd 100644 --- a/pkg/app/AppListingService.go +++ b/pkg/app/AppListingService.go @@ -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