executable states that the progress of this node type is updated by other code. It should not be summed. It maybe that this type of node never gets progress.
(nodeType wfv1.NodeType)
| 2852 | // executable states that the progress of this node type is updated by other code. It should not be summed. |
| 2853 | // It maybe that this type of node never gets progress. |
| 2854 | func executable(nodeType wfv1.NodeType) bool { |
| 2855 | switch nodeType { |
| 2856 | case wfv1.NodeTypePod, wfv1.NodeTypeContainer: |
| 2857 | return true |
| 2858 | default: |
| 2859 | return false |
| 2860 | } |
| 2861 | } |
| 2862 | |
| 2863 | func (woc *wfOperationCtx) initializeNode(ctx context.Context, nodeName string, nodeType wfv1.NodeType, templateScope string, orgTmpl wfv1.TemplateReferenceHolder, boundaryID string, phase wfv1.NodePhase, nodeFlag *wfv1.NodeFlag, omitTaskResultSynced bool, messages ...string) *wfv1.NodeStatus { |
| 2864 | woc.log.WithFields(logging.Fields{"nodeName": nodeName, "template": common.GetTemplateHolderString(orgTmpl), "boundaryID": boundaryID}).Debug(ctx, "Initializing node") |