Skip to content

Commit

Permalink
fix(controller): Mark workflows wait for semaphore as pending. Fixes #…
Browse files Browse the repository at this point in the history
…6351 (#6356)

Signed-off-by: Alex Collins <alex_collins@intuit.com>
  • Loading branch information
alexec authored Jul 22, 2021
1 parent 4535396 commit 092b427
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,11 @@ func (woc *wfOperationCtx) operate(ctx context.Context) {
woc.updated = wfUpdate
if !acquired {
woc.log.Warn("Workflow processing has been postponed due to concurrency limit")
woc.wf.Status.Message = msg
phase := woc.wf.Status.Phase
if phase == wfv1.WorkflowUnknown {
phase = wfv1.WorkflowPending
}
woc.markWorkflowPhase(ctx, phase, msg)
return
}
}
Expand Down

0 comments on commit 092b427

Please sign in to comment.