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 and sarabala1979 committed Jul 27, 2021
1 parent 791c26b commit 069816a
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 @@ -228,7 +228,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 069816a

Please sign in to comment.