Skip to content

Commit

Permalink
fix: Skip execution control for agent pod during pod reconciliation. F…
Browse files Browse the repository at this point in the history
…ixes #12726 (#12732)

Signed-off-by: jswxstw <[email protected]>
  • Loading branch information
jswxstw authored Nov 28, 2024
1 parent 2699b14 commit 7d6d8f3
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 7d6d8f3

Please sign in to comment.