markNodeError is a convenience method to mark a node with an error and set the message from the error
(ctx context.Context, nodeName string, err error)
| 3052 | |
| 3053 | // markNodeError is a convenience method to mark a node with an error and set the message from the error |
| 3054 | func (woc *wfOperationCtx) markNodeError(ctx context.Context, nodeName string, err error) *wfv1.NodeStatus { |
| 3055 | woc.log.WithError(err).WithField("nodeName", nodeName).Error(ctx, "marking node as error") |
| 3056 | return woc.markNodePhase(ctx, nodeName, wfv1.NodeError, err.Error()) |
| 3057 | } |
| 3058 | |
| 3059 | // markNodePending is a convenience method to mark a node and set the message from the error |
| 3060 | func (woc *wfOperationCtx) markNodePending(ctx context.Context, nodeName string, err error) *wfv1.NodeStatus { |
no test coverage detected