Skip to content

Commit

Permalink
fix: Skip execution control for agent pod. Fixes #12726
Browse files Browse the repository at this point in the history
Signed-off-by: jswxstw <[email protected]>
  • Loading branch information
jswxstw committed May 4, 2024
1 parent ccb71bd commit 0b5e45f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/controller/exec_control.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ import (
)

// applyExecutionControl will ensure a pod's execution control annotation is up-to-date
// kills any pending and running pods when workflow has reached it's deadline
// kills any pending and running pods (except agent pod) when workflow has reached its deadline
func (woc *wfOperationCtx) applyExecutionControl(pod *apiv1.Pod, wfNodesLock *sync.RWMutex) {
if pod == nil {
if pod == nil || woc.isAgentPod(pod) {
return
}

Expand Down

0 comments on commit 0b5e45f

Please sign in to comment.