Documentation ¶
Index ¶
- Constants
- func CreateAliasMap(aliases []v1alpha1.Alias) map[string]string
- func GetParentNodeMaxEndTime(ctx context.Context, dag executors.DAGStructure, nl executors.NodeLookup, ...) (t v1.Time, err error)
- func NewExecutor(ctx context.Context, nodeConfig config.NodeConfig, store *storage.DataStore, ...) (executors.Node, error)
- func ParseVarName(varName string) (idx *int, name string, err error)
- func Resolve(ctx context.Context, outputResolver OutputResolver, nl executors.NodeLookup, ...) (*core.LiteralMap, error)
- func ResolveBindingData(ctx context.Context, outputResolver OutputResolver, nl executors.NodeLookup, ...) (*core.Literal, error)
- func ToK8sTime(t time.Time) v1.Time
- func ToNodeExecEventPhase(p handler.EPhase) core.NodeExecution_Phase
- func ToNodeExecOutput(info *handler.OutputInfo) *event.NodeExecutionEvent_OutputUri
- func ToNodeExecTargetMetadata(info *handler.WorkflowNodeInfo) *event.NodeExecutionEvent_WorkflowNodeMetadata
- func ToNodeExecutionEvent(nodeExecID *core.NodeExecutionIdentifier, info handler.PhaseInfo, ...) (*event.NodeExecutionEvent, error)
- func ToNodePhase(p handler.EPhase) (v1alpha1.NodePhase, error)
- func UpdateNodeStatus(np v1alpha1.NodePhase, p handler.PhaseInfo, n *nodeStateManager, ...)
- type HandlerFactory
- type OutputResolver
- type PredicatePhase
- type VarName
Constants ¶
View Source
const NodeIDLabel = "node-id"
View Source
const NodeInterruptibleLabel = "interruptible"
View Source
const TaskNameLabel = "task-name"
Variables ¶
This section is empty.
Functions ¶
func CreateAliasMap ¶ added in v0.1.13
func GetParentNodeMaxEndTime ¶
func NewExecutor ¶
func NewExecutor(ctx context.Context, nodeConfig config.NodeConfig, store *storage.DataStore, enQWorkflow v1alpha1.EnqueueWorkflow, eventSink events.EventSink, workflowLauncher launchplan.Executor, launchPlanReader launchplan.Reader, maxDatasetSize int64, defaultRawOutputPrefix storage.DataReference, kubeClient executors.Client, catalogClient catalog.Client, scope promutils.Scope) (executors.Node, error)
func ParseVarName ¶ added in v0.1.13
Parses var names
func Resolve ¶
func Resolve(ctx context.Context, outputResolver OutputResolver, nl executors.NodeLookup, nodeID v1alpha1.NodeID, bindings []*v1alpha1.Binding) (*core.LiteralMap, error)
func ResolveBindingData ¶
func ResolveBindingData(ctx context.Context, outputResolver OutputResolver, nl executors.NodeLookup, bindingData *core.BindingData) (*core.Literal, error)
func ToNodeExecEventPhase ¶ added in v0.1.13
func ToNodeExecEventPhase(p handler.EPhase) core.NodeExecution_Phase
func ToNodeExecOutput ¶ added in v0.1.13
func ToNodeExecOutput(info *handler.OutputInfo) *event.NodeExecutionEvent_OutputUri
func ToNodeExecTargetMetadata ¶ added in v0.1.13
func ToNodeExecTargetMetadata(info *handler.WorkflowNodeInfo) *event.NodeExecutionEvent_WorkflowNodeMetadata
func ToNodeExecutionEvent ¶ added in v0.1.13
func ToNodeExecutionEvent(nodeExecID *core.NodeExecutionIdentifier, info handler.PhaseInfo, reader io.InputReader, status v1alpha1.ExecutableNodeStatus) (*event.NodeExecutionEvent, error)
func UpdateNodeStatus ¶ added in v0.1.13
Types ¶
type HandlerFactory ¶
type HandlerFactory interface { GetHandler(kind v1alpha1.NodeKind) (handler.Node, error) Setup(ctx context.Context, setup handler.SetupContext) error }
func NewHandlerFactory ¶
type OutputResolver ¶ added in v0.1.13
type OutputResolver interface { // Extracts a subset of node outputs to literals. ExtractOutput(ctx context.Context, nl executors.NodeLookup, n v1alpha1.ExecutableNode, bindToVar VarName) (values *core.Literal, err error) }
func NewRemoteFileOutputResolver ¶ added in v0.1.13
func NewRemoteFileOutputResolver(store *storage.DataStore) OutputResolver
Creates a simple output resolver that expects an outputs.pb at the data directory of the node.
type PredicatePhase ¶
type PredicatePhase int
Special enum to indicate if the node under consideration is ready to be executed or should be skipped
const ( // Indicates node is not yet ready to be executed PredicatePhaseNotReady PredicatePhase = iota // Indicates node is ready to be executed - execution should proceed PredicatePhaseReady // Indicates that the node execution should be skipped as one of its parents was skipped or the branch was not taken PredicatePhaseSkip // Indicates failure during Predicate check PredicatePhaseUndefined )
func CanExecute ¶
func CanExecute(ctx context.Context, dag executors.DAGStructure, nl executors.NodeLookup, node v1alpha1.BaseNode) (PredicatePhase, error)
func (PredicatePhase) String ¶ added in v0.1.13
func (p PredicatePhase) String() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.