MCPcopy Index your code
hub / github.com/argoproj/argo-workflows / nodeID

Method nodeID

workflow/controller/operator.go:1299–1305  ·  view source on GitHub ↗
(pod *apiv1.Pod)

Source from the content-addressed store, hash-verified

1297}
1298
1299func (woc *wfOperationCtx) nodeID(pod *apiv1.Pod) string {
1300 nodeID, ok := pod.Annotations[common.AnnotationKeyNodeID]
1301 if !ok {
1302 nodeID = woc.wf.NodeID(pod.Annotations[common.AnnotationKeyNodeName])
1303 }
1304 return nodeID
1305}
1306
1307func recentlyStarted(ctx context.Context, node wfv1.NodeStatus) bool {
1308 return time.Since(node.StartedAt.Time) <= envutil.LookupEnvDurationOr(ctx, "RECENTLY_STARTED_POD_DURATION", 10*time.Second)

Callers 9

podReconciliationMethod · 0.95
assessNodeStatusMethod · 0.95
queuePodsForCleanupMethod · 0.95
applyExecutionControlMethod · 0.95
TestWorkflowStepRetryFunction · 0.80
withOutputsFunction · 0.80
makePodsPhaseFunction · 0.80

Calls 1

NodeIDMethod · 0.80

Tested by 5

TestWorkflowStepRetryFunction · 0.64
withOutputsFunction · 0.64
makePodsPhaseFunction · 0.64