Skip to content

Commit

Permalink
Reduce redundancy pod label action (#1271)
Browse files Browse the repository at this point in the history
  • Loading branch information
xianlubird authored and jessesuen committed Mar 21, 2019
1 parent 4bfbb20 commit e610524
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions workflow/controller/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,11 @@ func (woc *wfOperationCtx) podReconciliation() error {
}
node := woc.wf.Status.Nodes[pod.ObjectMeta.Name]
if node.Completed() && !node.IsDaemoned() {
if tmpVal, tmpOk := pod.Labels[common.LabelKeyCompleted]; tmpOk {
if tmpVal == "true" {
return
}
}
woc.completedPods[pod.ObjectMeta.Name] = true
}
}
Expand Down

0 comments on commit e610524

Please sign in to comment.