MCPcopy
hub / github.com/argoproj/argo-workflows / countNodes

Method countNodes

workflow/controller/node_counters.go:60–68  ·  view source on GitHub ↗
(counter counter)

Source from the content-addressed store, hash-verified

58}
59
60func (woc *wfOperationCtx) countNodes(counter counter) int64 {
61 count := 0
62 for _, node := range woc.wf.Status.Nodes {
63 if counter(node) {
64 count++
65 }
66 }
67 return int64(count)
68}

Callers 3

getActivePodsMethod · 0.95
getActiveChildrenMethod · 0.95

Calls 1

counterFuncType · 0.85

Tested by

no test coverage detected