Skip to content

Commit 73ad83e

Browse files
authored
fix helm deployment status (#5996)
1 parent 2cff702 commit 73ad83e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/sql/repository/pipelineConfig/CdWorfkflowRepository.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,9 +693,10 @@ func (impl *CdWorkflowRepositoryImpl) GetLatestTriggersOfHelmPipelinesStuckInNon
693693
Where("cd_workflow_runner.cd_workflow_id in"+
694694
" (SELECT max(cd_workflow.id) as id from cd_workflow"+
695695
" INNER JOIN cd_workflow_runner on cd_workflow.id = cd_workflow_runner.cd_workflow_id"+
696-
" WHERE cd_workflow_runner.status != ?"+
696+
" WHERE cd_workflow_runner.workflow_type = ? "+
697+
" AND cd_workflow_runner.status != ?"+
697698
" GROUP BY cd_workflow.pipeline_id"+
698-
" ORDER BY cd_workflow.pipeline_id desc)", cdWorkflow.WorkflowInQueue).
699+
" ORDER BY cd_workflow.pipeline_id desc)", apiBean.CD_WORKFLOW_TYPE_DEPLOY, cdWorkflow.WorkflowInQueue).
699700
Where("(cd_workflow__pipeline.deployment_app_type=? or dc.deployment_app_type=?)", util.PIPELINE_DEPLOYMENT_TYPE_HELM, util.PIPELINE_DEPLOYMENT_TYPE_HELM).
700701
Where("cd_workflow_runner.started_on > NOW() - INTERVAL '? hours'", getPipelineDeployedWithinHours).
701702
Where("cd_workflow__pipeline.deleted=?", false).

0 commit comments

Comments
 (0)