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

Method markNodePending

workflow/controller/operator.go:3060–3063  ·  view source on GitHub ↗

markNodePending is a convenience method to mark a node and set the message from the error

(ctx context.Context, nodeName string, err error)

Source from the content-addressed store, hash-verified

3058
3059// markNodePending is a convenience method to mark a node and set the message from the error
3060func (woc *wfOperationCtx) markNodePending(ctx context.Context, nodeName string, err error) *wfv1.NodeStatus {
3061 woc.log.WithFields(logging.Fields{"nodeName": nodeName, "error": err}).Info(ctx, "marking node as pending")
3062 return woc.markNodePhase(ctx, nodeName, wfv1.NodePending, err.Error()) // this error message will not change often
3063}
3064
3065// markNodeWaitingForLock is a convenience method to mark that a node is waiting for a lock
3066func (woc *wfOperationCtx) markNodeWaitingForLock(ctx context.Context, nodeName string, lockName string, message string) (*wfv1.NodeStatus, error) {

Callers 1

requeueIfTransientErrMethod · 0.95

Calls 4

markNodePhaseMethod · 0.95
InfoMethod · 0.65
WithFieldsMethod · 0.65
ErrorMethod · 0.65

Tested by

no test coverage detected