Skip to content

Commit

Permalink
fix: SubscribeCDStageCompleteEvent status update
Browse files Browse the repository at this point in the history
  • Loading branch information
Ash-exp committed Sep 26, 2024
1 parent ba6023b commit 49d8a8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/eventProcessor/in/WorkflowEventProcessorService.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ func (impl *WorkflowEventProcessorImpl) SubscribeCDStageCompleteEvent() error {
wfr.IsArtifactUploaded = cdStageCompleteEvent.IsArtifactUploaded
if wfr.Status != string(v1alpha1.NodeSucceeded) {
impl.logger.Debugw("event received from ci runner, updating workflow runner status as succeeded", "savedWorkflowRunnerId", wfr.Id, "oldStatus", wfr.Status, "podStatus", wfr.PodStatus)
wfr.Status = string(v1alpha1.NodeSucceeded)
err = impl.cdWorkflowRunnerService.UpdateWfr(wfr, 1)
if err != nil {
impl.logger.Errorw("update cd-wf-runner failed for id ", "cdWfrId", wfr.Id, "err", err)
Expand Down

0 comments on commit 49d8a8f

Please sign in to comment.