Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=flyteworkflow.flyte.net
Index ¶
- Constants
- Variables
- func GetFutureFile() string
- func IsPhaseTerminal(phase NodePhase) bool
- func IsWorkflowPhaseTerminal(p WorkflowPhase) bool
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type Alias
- type BaseNode
- type BaseWorkflow
- type BaseWorkflowWithStatus
- type Binding
- type BooleanExpression
- type BranchNodePhase
- type BranchNodeSpec
- func (in *BranchNodeSpec) DeepCopy() *BranchNodeSpec
- func (in *BranchNodeSpec) DeepCopyInto(out *BranchNodeSpec)
- func (in *BranchNodeSpec) GetElse() *NodeID
- func (in *BranchNodeSpec) GetElseFail() *core.Error
- func (in *BranchNodeSpec) GetElseIf() []ExecutableIfBlock
- func (in *BranchNodeSpec) GetIf() ExecutableIfBlock
- type BranchNodeStatus
- func (in *BranchNodeStatus) DeepCopy() *BranchNodeStatus
- func (in *BranchNodeStatus) DeepCopyInto(out *BranchNodeStatus)
- func (in *BranchNodeStatus) Equals(other *BranchNodeStatus) bool
- func (in *BranchNodeStatus) GetFinalizedNode() *NodeID
- func (in *BranchNodeStatus) GetPhase() BranchNodePhase
- func (in *BranchNodeStatus) SetBranchNodeError()
- func (in *BranchNodeStatus) SetBranchNodeSuccess(id NodeID)
- type Connections
- type CustomState
- type DataReference
- type DynamicNodePhase
- type DynamicNodeStatus
- func (in *DynamicNodeStatus) DeepCopy() *DynamicNodeStatus
- func (in *DynamicNodeStatus) DeepCopyInto(out *DynamicNodeStatus)
- func (s *DynamicNodeStatus) Equals(o *DynamicNodeStatus) bool
- func (s *DynamicNodeStatus) GetDynamicNodePhase() DynamicNodePhase
- func (s *DynamicNodeStatus) SetDynamicNodePhase(phase DynamicNodePhase)
- type EnqueueWorkflow
- type Error
- type ExecutableBranchNode
- type ExecutableBranchNodeStatus
- type ExecutableDynamicNodeStatus
- type ExecutableIfBlock
- type ExecutableNode
- type ExecutableNodeStatus
- type ExecutableSubWorkflow
- type ExecutableSubWorkflowNodeStatus
- type ExecutableTask
- type ExecutableTaskNodeStatus
- type ExecutableWorkflow
- type ExecutableWorkflowNode
- type ExecutableWorkflowNodeStatus
- type ExecutableWorkflowStatus
- type ExecutionID
- type FlyteWorkflow
- func (in *FlyteWorkflow) DeepCopy() *FlyteWorkflow
- func (in *FlyteWorkflow) DeepCopyInto(out *FlyteWorkflow)
- func (in *FlyteWorkflow) DeepCopyObject() runtime.Object
- func (in *FlyteWorkflow) FindSubWorkflow(subID WorkflowID) ExecutableSubWorkflow
- func (in *FlyteWorkflow) GetExecutionID() ExecutionID
- func (in *FlyteWorkflow) GetExecutionStatus() ExecutableWorkflowStatus
- func (in *FlyteWorkflow) GetK8sWorkflowID() types.NamespacedName
- func (in *FlyteWorkflow) GetNodeExecutionStatus(id NodeID) ExecutableNodeStatus
- func (in *FlyteWorkflow) GetServiceAccountName() string
- func (in *FlyteWorkflow) GetTask(id TaskID) (ExecutableTask, error)
- func (in *FlyteWorkflow) NewControllerRef() metav1.OwnerReference
- type FlyteWorkflowList
- type Identifier
- type IfBlock
- type Inputs
- type LaunchPlanRefID
- type MutableBranchNodeStatus
- type MutableDynamicNodeStatus
- type MutableNodeStatus
- type MutableSubWorkflowNodeStatus
- type MutableTaskNodeStatus
- type MutableWorkflowNodeStatus
- type NodeID
- type NodeKind
- type NodeMetadata
- type NodePhase
- type NodeSpec
- func (in *NodeSpec) DeepCopy() *NodeSpec
- func (in *NodeSpec) DeepCopyInto(out *NodeSpec)
- func (in *NodeSpec) GetBranchNode() ExecutableBranchNode
- func (in *NodeSpec) GetConfig() *typesv1.ConfigMap
- func (in *NodeSpec) GetID() NodeID
- func (in *NodeSpec) GetInputBindings() []*Binding
- func (in *NodeSpec) GetKind() NodeKind
- func (in *NodeSpec) GetOutputAlias() []Alias
- func (in *NodeSpec) GetResources() *typesv1.ResourceRequirements
- func (in *NodeSpec) GetRetryStrategy() *RetryStrategy
- func (in *NodeSpec) GetTaskID() *TaskID
- func (in *NodeSpec) GetWorkflowNode() ExecutableWorkflowNode
- func (in *NodeSpec) IsEndNode() bool
- func (in *NodeSpec) IsStartNode() bool
- type NodeStatus
- func (in *NodeStatus) ClearDynamicNodeStatus()
- func (in *NodeStatus) ClearSubWorkflowStatus()
- func (in *NodeStatus) ClearTaskStatus()
- func (in *NodeStatus) ClearWorkflowStatus()
- func (in *NodeStatus) DeepCopy() *NodeStatus
- func (in *NodeStatus) DeepCopyInto(out *NodeStatus)
- func (in *NodeStatus) Equals(other *NodeStatus) bool
- func (in *NodeStatus) GetAttempts() uint32
- func (in *NodeStatus) GetDataDir() DataReference
- func (in *NodeStatus) GetLastUpdatedAt() *metav1.Time
- func (in *NodeStatus) GetMessage() string
- func (in *NodeStatus) GetNodeExecutionStatus(id NodeID) ExecutableNodeStatus
- func (in *NodeStatus) GetOrCreateBranchStatus() MutableBranchNodeStatus
- func (in *NodeStatus) GetOrCreateDynamicNodeStatus() MutableDynamicNodeStatus
- func (in NodeStatus) GetOrCreateSubWorkflowStatus() MutableSubWorkflowNodeStatus
- func (in *NodeStatus) GetOrCreateTaskStatus() MutableTaskNodeStatus
- func (in *NodeStatus) GetOrCreateWorkflowStatus() MutableWorkflowNodeStatus
- func (in *NodeStatus) GetParentNodeID() *NodeID
- func (in *NodeStatus) GetParentTaskID() *core.TaskExecutionIdentifier
- func (in *NodeStatus) GetPhase() NodePhase
- func (in *NodeStatus) GetQueuedAt() *metav1.Time
- func (in *NodeStatus) GetStartedAt() *metav1.Time
- func (in *NodeStatus) GetStoppedAt() *metav1.Time
- func (in NodeStatus) GetSubWorkflowNodeStatus() ExecutableSubWorkflowNodeStatus
- func (in NodeStatus) GetTaskNodeStatus() ExecutableTaskNodeStatus
- func (in *NodeStatus) GetWorkflowNodeStatus() ExecutableWorkflowNodeStatus
- func (in *NodeStatus) IncrementAttempts() uint32
- func (in *NodeStatus) IsCached() bool
- func (in *NodeStatus) IsDirty() bool
- func (in *NodeStatus) IsTerminated() bool
- func (in *NodeStatus) ResetDirty()
- func (in *NodeStatus) SetCached()
- func (in *NodeStatus) SetDataDir(d DataReference)
- func (in *NodeStatus) SetParentNodeID(n *NodeID)
- func (in *NodeStatus) SetParentTaskID(t *core.TaskExecutionIdentifier)
- func (in *NodeStatus) UpdatePhase(p NodePhase, occurredAt metav1.Time, reason string)
- func (in NodeStatus) VisitNodeStatuses(visitor NodeStatusVisitFn)
- type NodeStatusGetter
- type NodeStatusMap
- type NodeStatusVisitFn
- type NodeStatusVisitor
- type OutputVarMap
- type RetryStrategy
- type SubWorkflowNodeStatus
- type TaskExecutionIdentifier
- type TaskID
- type TaskNodeStatus
- func (in *TaskNodeStatus) DeepCopy() *TaskNodeStatus
- func (in *TaskNodeStatus) DeepCopyInto(out *TaskNodeStatus)
- func (in TaskNodeStatus) GetCustomState() types.CustomState
- func (in TaskNodeStatus) GetPhase() types.TaskPhase
- func (in TaskNodeStatus) GetPhaseVersion() uint32
- func (in *TaskNodeStatus) SetCustomState(state types.CustomState)
- func (in *TaskNodeStatus) SetPhase(phase types.TaskPhase)
- func (in *TaskNodeStatus) SetPhaseVersion(version uint32)
- func (in *TaskNodeStatus) UpdateCustomState(state types.CustomState)
- func (in *TaskNodeStatus) UpdatePhase(phase types.TaskPhase, phaseVersion uint32)
- type TaskSpec
- type TaskType
- type WorkflowExecutionIdentifier
- type WorkflowID
- type WorkflowMeta
- type WorkflowMetaExtended
- type WorkflowNodeSpec
- type WorkflowNodeStatus
- type WorkflowPhase
- type WorkflowSpec
- func (in *WorkflowSpec) DeepCopy() *WorkflowSpec
- func (in *WorkflowSpec) DeepCopyInto(out *WorkflowSpec)
- func (in *WorkflowSpec) FromNode(name NodeID) ([]NodeID, error)
- func (in *WorkflowSpec) GetConnections() *Connections
- func (in *WorkflowSpec) GetID() WorkflowID
- func (in *WorkflowSpec) GetNode(nodeID NodeID) (ExecutableNode, bool)
- func (in *WorkflowSpec) GetNodes() []NodeID
- func (in *WorkflowSpec) GetOnFailureNode() ExecutableNode
- func (in *WorkflowSpec) GetOutputBindings() []*Binding
- func (in *WorkflowSpec) GetOutputs() *OutputVarMap
- func (in *WorkflowSpec) StartNode() ExecutableNode
- type WorkflowStatus
- func (in *WorkflowStatus) ConstructNodeDataDir(ctx context.Context, constructor storage.ReferenceConstructor, name NodeID) (storage.DataReference, error)
- func (in *WorkflowStatus) DeepCopy() *WorkflowStatus
- func (in *WorkflowStatus) DeepCopyInto(out *WorkflowStatus)
- func (in *WorkflowStatus) Equals(other *WorkflowStatus) bool
- func (in *WorkflowStatus) GetDataDir() DataReference
- func (in *WorkflowStatus) GetLastUpdatedAt() *metav1.Time
- func (in *WorkflowStatus) GetMessage() string
- func (in *WorkflowStatus) GetNodeExecutionStatus(id NodeID) ExecutableNodeStatus
- func (in *WorkflowStatus) GetOutputReference() DataReference
- func (in *WorkflowStatus) GetPhase() WorkflowPhase
- func (in *WorkflowStatus) GetStartedAt() *metav1.Time
- func (in *WorkflowStatus) GetStoppedAt() *metav1.Time
- func (in *WorkflowStatus) IncFailedAttempts()
- func (in *WorkflowStatus) IsTerminated() bool
- func (in *WorkflowStatus) SetDataDir(d DataReference)
- func (in *WorkflowStatus) SetMessage(msg string)
- func (in *WorkflowStatus) SetOutputReference(reference DataReference)
- func (in *WorkflowStatus) UpdatePhase(p WorkflowPhase, msg string)
Constants ¶
const EndNodeID = "end-node"
const FlyteWorkflowKind = "flyteworkflow"
const StartNodeID = "start-node"
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var FlyteWorkflowGVK = SchemeGroupVersion.WithKind(FlyteWorkflowKind)
var SchemeGroupVersion = schema.GroupVersion{Group: flyteworkflow.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func GetFutureFile ¶
func GetFutureFile() string
func IsPhaseTerminal ¶
func IsWorkflowPhaseTerminal ¶
func IsWorkflowPhaseTerminal(p WorkflowPhase) bool
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Alias ¶
func (*Alias) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Alias.
func (*Alias) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type BaseWorkflow ¶
type BaseWorkflow interface { StartNode() ExecutableNode GetID() WorkflowID // From returns all nodes that can be reached directly // from the node with the given unique name. FromNode(name NodeID) ([]NodeID, error) GetNode(nodeID NodeID) (ExecutableNode, bool) }
type BaseWorkflowWithStatus ¶
type BaseWorkflowWithStatus interface { BaseWorkflow NodeStatusGetter }
type Binding ¶
func (*Binding) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Binding.
func (*Binding) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Binding) MarshalJSON ¶
func (*Binding) UnmarshalJSON ¶
type BooleanExpression ¶
type BooleanExpression struct {
*core.BooleanExpression
}
func (*BooleanExpression) DeepCopy ¶
func (in *BooleanExpression) DeepCopy() *BooleanExpression
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BooleanExpression.
func (*BooleanExpression) DeepCopyInto ¶
func (in *BooleanExpression) DeepCopyInto(out *BooleanExpression)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (BooleanExpression) MarshalJSON ¶
func (in BooleanExpression) MarshalJSON() ([]byte, error)
func (*BooleanExpression) UnmarshalJSON ¶
func (in *BooleanExpression) UnmarshalJSON(b []byte) error
type BranchNodePhase ¶
type BranchNodePhase int
A branchNode has its own Phases. These are used by the child nodes to ensure that the branch node is in the right state
const ( BranchNodeNotYetEvaluated BranchNodePhase = iota BranchNodeSuccess BranchNodeError )
func (BranchNodePhase) String ¶
func (b BranchNodePhase) String() string
type BranchNodeSpec ¶
type BranchNodeSpec struct { If IfBlock `json:"if"` ElseIf []*IfBlock `json:"elseIf,omitempty"` Else *NodeID `json:"else,omitempty"` ElseFail *Error `json:"elseFail,omitempty"` }
func (*BranchNodeSpec) DeepCopy ¶
func (in *BranchNodeSpec) DeepCopy() *BranchNodeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchNodeSpec.
func (*BranchNodeSpec) DeepCopyInto ¶
func (in *BranchNodeSpec) DeepCopyInto(out *BranchNodeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BranchNodeSpec) GetElse ¶
func (in *BranchNodeSpec) GetElse() *NodeID
func (*BranchNodeSpec) GetElseFail ¶
func (in *BranchNodeSpec) GetElseFail() *core.Error
func (*BranchNodeSpec) GetElseIf ¶
func (in *BranchNodeSpec) GetElseIf() []ExecutableIfBlock
func (*BranchNodeSpec) GetIf ¶
func (in *BranchNodeSpec) GetIf() ExecutableIfBlock
type BranchNodeStatus ¶
type BranchNodeStatus struct { Phase BranchNodePhase `json:"phase"` FinalizedNodeID *NodeID `json:"finalNodeId"` }
func (*BranchNodeStatus) DeepCopy ¶
func (in *BranchNodeStatus) DeepCopy() *BranchNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new BranchNodeStatus.
func (*BranchNodeStatus) DeepCopyInto ¶
func (in *BranchNodeStatus) DeepCopyInto(out *BranchNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*BranchNodeStatus) Equals ¶
func (in *BranchNodeStatus) Equals(other *BranchNodeStatus) bool
func (*BranchNodeStatus) GetFinalizedNode ¶
func (in *BranchNodeStatus) GetFinalizedNode() *NodeID
func (*BranchNodeStatus) GetPhase ¶
func (in *BranchNodeStatus) GetPhase() BranchNodePhase
func (*BranchNodeStatus) SetBranchNodeError ¶
func (in *BranchNodeStatus) SetBranchNodeError()
func (*BranchNodeStatus) SetBranchNodeSuccess ¶
func (in *BranchNodeStatus) SetBranchNodeSuccess(id NodeID)
type Connections ¶
func (*Connections) DeepCopy ¶
func (in *Connections) DeepCopy() *Connections
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Connections.
func (*Connections) DeepCopyInto ¶
func (in *Connections) DeepCopyInto(out *Connections)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Connections) MarshalJSON ¶
func (in *Connections) MarshalJSON() ([]byte, error)
func (*Connections) UnmarshalJSON ¶
func (in *Connections) UnmarshalJSON(b []byte) error
type CustomState ¶
type CustomState map[string]interface{}
func (*CustomState) DeepCopy ¶
func (in *CustomState) DeepCopy() *CustomState
func (*CustomState) DeepCopyInto ¶
func (in *CustomState) DeepCopyInto(out *CustomState)
THIS IS NOT AUTO GENERATED
type DataReference ¶
type DataReference = storage.DataReference
func GetInputsFile ¶
func GetInputsFile(inputDir DataReference) DataReference
func GetOutputErrorFile ¶
func GetOutputErrorFile(inputDir DataReference) DataReference
func GetOutputsFile ¶
func GetOutputsFile(outputDir DataReference) DataReference
type DynamicNodePhase ¶
type DynamicNodePhase int
const ( DynamicNodePhaseNone DynamicNodePhase = iota DynamicNodePhaseExecuting )
type DynamicNodeStatus ¶
type DynamicNodeStatus struct {
Phase DynamicNodePhase `json:"phase"`
}
func (*DynamicNodeStatus) DeepCopy ¶
func (in *DynamicNodeStatus) DeepCopy() *DynamicNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicNodeStatus.
func (*DynamicNodeStatus) DeepCopyInto ¶
func (in *DynamicNodeStatus) DeepCopyInto(out *DynamicNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DynamicNodeStatus) Equals ¶
func (s *DynamicNodeStatus) Equals(o *DynamicNodeStatus) bool
func (*DynamicNodeStatus) GetDynamicNodePhase ¶
func (s *DynamicNodeStatus) GetDynamicNodePhase() DynamicNodePhase
func (*DynamicNodeStatus) SetDynamicNodePhase ¶
func (s *DynamicNodeStatus) SetDynamicNodePhase(phase DynamicNodePhase)
type EnqueueWorkflow ¶
type EnqueueWorkflow func(workflowID WorkflowID)
Simple callback that can be used to indicate that the workflow with WorkflowID should be re-enqueued for examination.
type Error ¶
func (*Error) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Error.
func (*Error) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Error) MarshalJSON ¶
func (Error) UnmarshalJSON ¶
type ExecutableBranchNode ¶
type ExecutableBranchNode interface { GetIf() ExecutableIfBlock GetElse() *NodeID GetElseIf() []ExecutableIfBlock GetElseFail() *core.Error }
Interface for Branch node. All the methods are purely read only except for the GetExecutionStatus. Phase returns ExecutableBranchNodeStatus, which permits some mutations
type ExecutableBranchNodeStatus ¶
type ExecutableBranchNodeStatus interface { GetPhase() BranchNodePhase GetFinalizedNode() *NodeID }
Interface for branch node status. This is the mutable API for a branch node
type ExecutableDynamicNodeStatus ¶
type ExecutableDynamicNodeStatus interface {
GetDynamicNodePhase() DynamicNodePhase
}
Interface for dynamic node status.
type ExecutableIfBlock ¶
type ExecutableIfBlock interface { GetCondition() *core.BooleanExpression GetThenNode() *NodeID }
Interface for the executable If block
type ExecutableNode ¶
type ExecutableNode interface { BaseNode IsStartNode() bool IsEndNode() bool GetTaskID() *TaskID GetBranchNode() ExecutableBranchNode GetWorkflowNode() ExecutableWorkflowNode GetOutputAlias() []Alias GetInputBindings() []*Binding GetResources() *v1.ResourceRequirements GetConfig() *v1.ConfigMap GetRetryStrategy() *RetryStrategy }
Interface for the Executable Node
type ExecutableNodeStatus ¶
type ExecutableNodeStatus interface { NodeStatusGetter MutableNodeStatus NodeStatusVisitor GetPhase() NodePhase GetQueuedAt() *metav1.Time GetStoppedAt() *metav1.Time GetStartedAt() *metav1.Time GetLastUpdatedAt() *metav1.Time GetParentNodeID() *NodeID GetParentTaskID() *core.TaskExecutionIdentifier GetDataDir() DataReference GetMessage() string GetAttempts() uint32 GetWorkflowNodeStatus() ExecutableWorkflowNodeStatus GetTaskNodeStatus() ExecutableTaskNodeStatus GetSubWorkflowNodeStatus() ExecutableSubWorkflowNodeStatus IsCached() bool IsDirty() bool }
Interface for a Node Phase. This provides a mutable API.
type ExecutableSubWorkflow ¶
type ExecutableSubWorkflow interface { BaseWorkflow GetOutputBindings() []*Binding GetOnFailureNode() ExecutableNode GetNodes() []NodeID GetConnections() *Connections GetOutputs() *OutputVarMap }
This interface captures the methods available on any workflow (top level or child). The Meta section is available only for the top level workflow
type ExecutableSubWorkflowNodeStatus ¶
type ExecutableSubWorkflowNodeStatus interface {
GetPhase() WorkflowPhase
}
type ExecutableTask ¶
type ExecutableTask interface { TaskType() TaskType CoreTask() *core.TaskTemplate }
Interface for a Task that can be executed
type ExecutableTaskNodeStatus ¶
type ExecutableTaskNodeStatus interface { GetPhase() types2.TaskPhase GetPhaseVersion() uint32 GetCustomState() types2.CustomState }
type ExecutableWorkflow ¶
type ExecutableWorkflow interface { ExecutableSubWorkflow WorkflowMetaExtended NodeStatusGetter }
A Top level Workflow is a combination of WorkflowMeta and an ExecutableSubWorkflow
type ExecutableWorkflowNode ¶
type ExecutableWorkflowNode interface { GetLaunchPlanRefID() *LaunchPlanRefID GetSubWorkflowRef() *WorkflowID }
Interface for a Child Workflow Node
type ExecutableWorkflowNodeStatus ¶
type ExecutableWorkflowNodeStatus interface { // Name of the child execution. We only store name since the project and domain will be // the same as the parent workflow execution. GetWorkflowExecutionName() string }
type ExecutableWorkflowStatus ¶
type ExecutableWorkflowStatus interface { NodeStatusGetter UpdatePhase(p WorkflowPhase, msg string) GetPhase() WorkflowPhase GetStoppedAt() *metav1.Time GetStartedAt() *metav1.Time GetLastUpdatedAt() *metav1.Time IsTerminated() bool GetMessage() string SetDataDir(DataReference) GetDataDir() DataReference GetOutputReference() DataReference SetOutputReference(reference DataReference) IncFailedAttempts() SetMessage(msg string) ConstructNodeDataDir(ctx context.Context, constructor storage.ReferenceConstructor, name NodeID) (storage.DataReference, error) }
Interface for the Workflow Phase. This is the mutable portion for a Workflow
type ExecutionID ¶
type ExecutionID = WorkflowExecutionIdentifier
type FlyteWorkflow ¶
type FlyteWorkflow struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` *WorkflowSpec `json:"spec"` Inputs *Inputs `json:"inputs,omitempty"` ExecutionID ExecutionID `json:"executionId"` Tasks map[TaskID]*TaskSpec `json:"tasks"` SubWorkflows map[WorkflowID]*WorkflowSpec `json:"subWorkflows,omitempty"` // StartTime before the system will actively try to mark it failed and kill associated containers. // Value must be a positive integer. // +optional ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` // Specifies the time when the workflow has been accepted into the system. AcceptedAt *metav1.Time `json:"acceptedAt,omitEmpty"` // ServiceAccountName is the name of the ServiceAccount to use to run this pod. // More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ // +optional ServiceAccountName string `json:"serviceAccountName,omitempty" protobuf:"bytes,8,opt,name=serviceAccountName"` // Status is the only mutable section in the workflow. It holds all the execution information Status WorkflowStatus `json:"status,omitempty"` }
FlyteWorkflow: represents one Execution Workflow object
func (*FlyteWorkflow) DeepCopy ¶
func (in *FlyteWorkflow) DeepCopy() *FlyteWorkflow
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlyteWorkflow.
func (*FlyteWorkflow) DeepCopyInto ¶
func (in *FlyteWorkflow) DeepCopyInto(out *FlyteWorkflow)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FlyteWorkflow) DeepCopyObject ¶
func (in *FlyteWorkflow) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*FlyteWorkflow) FindSubWorkflow ¶
func (in *FlyteWorkflow) FindSubWorkflow(subID WorkflowID) ExecutableSubWorkflow
func (*FlyteWorkflow) GetExecutionID ¶
func (in *FlyteWorkflow) GetExecutionID() ExecutionID
func (*FlyteWorkflow) GetExecutionStatus ¶
func (in *FlyteWorkflow) GetExecutionStatus() ExecutableWorkflowStatus
func (*FlyteWorkflow) GetK8sWorkflowID ¶
func (in *FlyteWorkflow) GetK8sWorkflowID() types.NamespacedName
func (*FlyteWorkflow) GetNodeExecutionStatus ¶
func (in *FlyteWorkflow) GetNodeExecutionStatus(id NodeID) ExecutableNodeStatus
func (*FlyteWorkflow) GetServiceAccountName ¶
func (in *FlyteWorkflow) GetServiceAccountName() string
func (*FlyteWorkflow) GetTask ¶
func (in *FlyteWorkflow) GetTask(id TaskID) (ExecutableTask, error)
func (*FlyteWorkflow) NewControllerRef ¶
func (in *FlyteWorkflow) NewControllerRef() metav1.OwnerReference
type FlyteWorkflowList ¶
type FlyteWorkflowList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []FlyteWorkflow `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object FlyteWorkflowList is a list of FlyteWorkflow resources
func (*FlyteWorkflowList) DeepCopy ¶
func (in *FlyteWorkflowList) DeepCopy() *FlyteWorkflowList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FlyteWorkflowList.
func (*FlyteWorkflowList) DeepCopyInto ¶
func (in *FlyteWorkflowList) DeepCopyInto(out *FlyteWorkflowList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*FlyteWorkflowList) DeepCopyObject ¶
func (in *FlyteWorkflowList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Identifier ¶
type Identifier struct {
*core.Identifier
}
func (*Identifier) DeepCopy ¶
func (in *Identifier) DeepCopy() *Identifier
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Identifier.
func (*Identifier) DeepCopyInto ¶
func (in *Identifier) DeepCopyInto(out *Identifier)
func (*Identifier) MarshalJSON ¶
func (in *Identifier) MarshalJSON() ([]byte, error)
func (*Identifier) UnmarshalJSON ¶
func (in *Identifier) UnmarshalJSON(b []byte) error
type IfBlock ¶
type IfBlock struct { Condition BooleanExpression `json:"condition"` ThenNode *NodeID `json:"then"` }
func (*IfBlock) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IfBlock.
func (*IfBlock) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (IfBlock) GetCondition ¶
func (in IfBlock) GetCondition() *core.BooleanExpression
func (*IfBlock) GetThenNode ¶
type Inputs ¶
type Inputs struct {
*core.LiteralMap
}
func (*Inputs) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Inputs.
func (*Inputs) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Inputs) MarshalJSON ¶
func (*Inputs) UnmarshalJSON ¶
type LaunchPlanRefID ¶
type LaunchPlanRefID = Identifier
type MutableBranchNodeStatus ¶
type MutableBranchNodeStatus interface { ExecutableBranchNodeStatus SetBranchNodeError() SetBranchNodeSuccess(id NodeID) }
type MutableDynamicNodeStatus ¶
type MutableDynamicNodeStatus interface { ExecutableDynamicNodeStatus SetDynamicNodePhase(phase DynamicNodePhase) }
type MutableNodeStatus ¶
type MutableNodeStatus interface { // Mutation API's SetDataDir(DataReference) SetParentNodeID(n *NodeID) SetParentTaskID(t *core.TaskExecutionIdentifier) UpdatePhase(phase NodePhase, occurredAt metav1.Time, reason string) IncrementAttempts() uint32 SetCached() ResetDirty() GetOrCreateBranchStatus() MutableBranchNodeStatus GetOrCreateWorkflowStatus() MutableWorkflowNodeStatus ClearWorkflowStatus() GetOrCreateTaskStatus() MutableTaskNodeStatus ClearTaskStatus() GetOrCreateSubWorkflowStatus() MutableSubWorkflowNodeStatus ClearSubWorkflowStatus() GetOrCreateDynamicNodeStatus() MutableDynamicNodeStatus ClearDynamicNodeStatus() }
type MutableSubWorkflowNodeStatus ¶
type MutableSubWorkflowNodeStatus interface { ExecutableSubWorkflowNodeStatus SetPhase(phase WorkflowPhase) }
type MutableTaskNodeStatus ¶
type MutableTaskNodeStatus interface { ExecutableTaskNodeStatus SetPhase(phase types2.TaskPhase) SetPhaseVersion(version uint32) SetCustomState(state types2.CustomState) }
type MutableWorkflowNodeStatus ¶
type MutableWorkflowNodeStatus interface { ExecutableWorkflowNodeStatus // Sets the name of the child execution. We only store name since the project and domain // will be the same as the parent workflow execution. SetWorkflowExecutionName(name string) }
type NodeKind ¶
type NodeKind string
NodeKind refers to the type of Node.
const ( // TODO Should we default a NodeKindTask to empty? thus we can assume all unspecified nodetypes as task NodeKindTask NodeKind = "task" NodeKindBranch NodeKind = "branch" // A Branch node with conditions NodeKindWorkflow NodeKind = "workflow" // Either an inline workflow or a remote workflow definition NodeKindStart NodeKind = "start" // Start node is a special node NodeKindEnd NodeKind = "end" )
type NodeMetadata ¶
type NodeMetadata struct {
core.NodeMetadata
}
func (*NodeMetadata) DeepCopy ¶
func (in *NodeMetadata) DeepCopy() *NodeMetadata
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeMetadata.
func (*NodeMetadata) DeepCopyInto ¶
func (in *NodeMetadata) DeepCopyInto(out *NodeMetadata)
type NodePhase ¶
type NodePhase int
NodePhase indicates the current state of the Node (phase). A node progresses through these states
type NodeSpec ¶
type NodeSpec struct { ID NodeID `json:"id"` Resources *typesv1.ResourceRequirements `json:"resources,omitempty"` Kind NodeKind `json:"kind"` BranchNode *BranchNodeSpec `json:"branch,omitempty"` TaskRef *TaskID `json:"task,omitempty"` WorkflowNode *WorkflowNodeSpec `json:"workflow,omitempty"` InputBindings []*Binding `json:"inputBindings,omitempty"` Config *typesv1.ConfigMap `json:"config,omitempty"` RetryStrategy *RetryStrategy `json:"retry,omitempty"` OutputAliases []Alias `json:"outputAlias,omitempty"` // SecurityContext holds pod-level security attributes and common container settings. // Optional: Defaults to empty. See type description for default values of each field. // +optional SecurityContext *typesv1.PodSecurityContext `json:"securityContext,omitempty" protobuf:"bytes,14,opt,name=securityContext"` // ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. // If specified, these secrets will be passed to individual puller implementations for them to use. For example, // in the case of docker, only DockerConfig type secrets are honored. // More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod // +optional // +patchMergeKey=name // +patchStrategy=merge ImagePullSecrets []typesv1.LocalObjectReference `json:"imagePullSecrets,omitempty" patchStrategy:"merge" patchMergeKey:"name" protobuf:"bytes,15,rep,name=imagePullSecrets"` // Specifies the hostname of the Pod // If not specified, the pod's hostname will be set to a system-defined value. // +optional Hostname string `json:"hostname,omitempty" protobuf:"bytes,16,opt,name=hostname"` // If specified, the fully qualified Pod hostname will be "<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>". // If not specified, the pod will not have a domainname at all. // +optional Subdomain string `json:"subdomain,omitempty" protobuf:"bytes,17,opt,name=subdomain"` // If specified, the pod's scheduling constraints // +optional Affinity *typesv1.Affinity `json:"affinity,omitempty" protobuf:"bytes,18,opt,name=affinity"` // If specified, the pod will be dispatched by specified scheduler. // If not specified, the pod will be dispatched by default scheduler. // +optional SchedulerName string `json:"schedulerName,omitempty" protobuf:"bytes,19,opt,name=schedulerName"` // If specified, the pod's tolerations. // +optional Tolerations []typesv1.Toleration `json:"tolerations,omitempty" protobuf:"bytes,22,opt,name=tolerations"` // StartTime before the system will actively try to mark it failed and kill associated containers. // Value must be a positive integer. // +optional ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty"` }
func (*NodeSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeSpec.
func (*NodeSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeSpec) GetBranchNode ¶
func (in *NodeSpec) GetBranchNode() ExecutableBranchNode
func (*NodeSpec) GetInputBindings ¶
func (*NodeSpec) GetOutputAlias ¶
func (*NodeSpec) GetResources ¶
func (in *NodeSpec) GetResources() *typesv1.ResourceRequirements
func (*NodeSpec) GetRetryStrategy ¶
func (in *NodeSpec) GetRetryStrategy() *RetryStrategy
func (*NodeSpec) GetWorkflowNode ¶
func (in *NodeSpec) GetWorkflowNode() ExecutableWorkflowNode
func (*NodeSpec) IsStartNode ¶
type NodeStatus ¶
type NodeStatus struct { Phase NodePhase `json:"phase"` QueuedAt *metav1.Time `json:"queuedAt,omitempty"` StartedAt *metav1.Time `json:"startedAt,omitempty"` StoppedAt *metav1.Time `json:"stoppedAt,omitempty"` LastUpdatedAt *metav1.Time `json:"lastUpdatedAt,omitempty"` Message string `json:"message,omitempty"` DataDir DataReference `json:"dataDir,omitempty"` Attempts uint32 `json:"attempts"` Cached bool `json:"cached"` // This is useful only for branch nodes. If this is set, then it can be used to determine if execution can proceed ParentNode *NodeID `json:"parentNode,omitempty"` ParentTask *TaskExecutionIdentifier `json:"parentTask,omitempty"` BranchStatus *BranchNodeStatus `json:"branchStatus,omitempty"` SubNodeStatus map[NodeID]*NodeStatus `json:"subNodeStatus,omitempty"` WorkflowNodeStatus *WorkflowNodeStatus `json:"workflowNodeStatus,omitempty"` TaskNodeStatus *TaskNodeStatus `json:",omitempty"` SubWorkflowNodeStatus *SubWorkflowNodeStatus `json:"subWorkflowStatus,omitempty"` DynamicNodeStatus *DynamicNodeStatus `json:"dynamicNodeStatus,omitempty"` // contains filtered or unexported fields }
func (*NodeStatus) ClearDynamicNodeStatus ¶
func (in *NodeStatus) ClearDynamicNodeStatus()
func (*NodeStatus) ClearSubWorkflowStatus ¶
func (in *NodeStatus) ClearSubWorkflowStatus()
func (*NodeStatus) ClearTaskStatus ¶
func (in *NodeStatus) ClearTaskStatus()
func (*NodeStatus) ClearWorkflowStatus ¶
func (in *NodeStatus) ClearWorkflowStatus()
func (*NodeStatus) DeepCopy ¶
func (in *NodeStatus) DeepCopy() *NodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeStatus.
func (*NodeStatus) DeepCopyInto ¶
func (in *NodeStatus) DeepCopyInto(out *NodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NodeStatus) Equals ¶
func (in *NodeStatus) Equals(other *NodeStatus) bool
func (*NodeStatus) GetAttempts ¶
func (in *NodeStatus) GetAttempts() uint32
func (*NodeStatus) GetDataDir ¶
func (in *NodeStatus) GetDataDir() DataReference
func (*NodeStatus) GetLastUpdatedAt ¶
func (in *NodeStatus) GetLastUpdatedAt() *metav1.Time
func (*NodeStatus) GetMessage ¶
func (in *NodeStatus) GetMessage() string
func (*NodeStatus) GetNodeExecutionStatus ¶
func (in *NodeStatus) GetNodeExecutionStatus(id NodeID) ExecutableNodeStatus
func (*NodeStatus) GetOrCreateBranchStatus ¶
func (in *NodeStatus) GetOrCreateBranchStatus() MutableBranchNodeStatus
func (*NodeStatus) GetOrCreateDynamicNodeStatus ¶
func (in *NodeStatus) GetOrCreateDynamicNodeStatus() MutableDynamicNodeStatus
func (NodeStatus) GetOrCreateSubWorkflowStatus ¶
func (in NodeStatus) GetOrCreateSubWorkflowStatus() MutableSubWorkflowNodeStatus
func (*NodeStatus) GetOrCreateTaskStatus ¶
func (in *NodeStatus) GetOrCreateTaskStatus() MutableTaskNodeStatus
func (*NodeStatus) GetOrCreateWorkflowStatus ¶
func (in *NodeStatus) GetOrCreateWorkflowStatus() MutableWorkflowNodeStatus
func (*NodeStatus) GetParentNodeID ¶
func (in *NodeStatus) GetParentNodeID() *NodeID
func (*NodeStatus) GetParentTaskID ¶
func (in *NodeStatus) GetParentTaskID() *core.TaskExecutionIdentifier
func (*NodeStatus) GetPhase ¶
func (in *NodeStatus) GetPhase() NodePhase
func (*NodeStatus) GetQueuedAt ¶
func (in *NodeStatus) GetQueuedAt() *metav1.Time
func (*NodeStatus) GetStartedAt ¶
func (in *NodeStatus) GetStartedAt() *metav1.Time
func (*NodeStatus) GetStoppedAt ¶
func (in *NodeStatus) GetStoppedAt() *metav1.Time
func (NodeStatus) GetSubWorkflowNodeStatus ¶
func (in NodeStatus) GetSubWorkflowNodeStatus() ExecutableSubWorkflowNodeStatus
func (NodeStatus) GetTaskNodeStatus ¶
func (in NodeStatus) GetTaskNodeStatus() ExecutableTaskNodeStatus
func (*NodeStatus) GetWorkflowNodeStatus ¶
func (in *NodeStatus) GetWorkflowNodeStatus() ExecutableWorkflowNodeStatus
func (*NodeStatus) IncrementAttempts ¶
func (in *NodeStatus) IncrementAttempts() uint32
func (*NodeStatus) IsCached ¶
func (in *NodeStatus) IsCached() bool
func (*NodeStatus) IsDirty ¶
func (in *NodeStatus) IsDirty() bool
func (*NodeStatus) IsTerminated ¶
func (in *NodeStatus) IsTerminated() bool
func (*NodeStatus) ResetDirty ¶
func (in *NodeStatus) ResetDirty()
ResetDirty is for unit tests, shouldn't be used in actual logic.
func (*NodeStatus) SetCached ¶
func (in *NodeStatus) SetCached()
func (*NodeStatus) SetDataDir ¶
func (in *NodeStatus) SetDataDir(d DataReference)
func (*NodeStatus) SetParentNodeID ¶
func (in *NodeStatus) SetParentNodeID(n *NodeID)
func (*NodeStatus) SetParentTaskID ¶
func (in *NodeStatus) SetParentTaskID(t *core.TaskExecutionIdentifier)
func (*NodeStatus) UpdatePhase ¶
func (in *NodeStatus) UpdatePhase(p NodePhase, occurredAt metav1.Time, reason string)
func (NodeStatus) VisitNodeStatuses ¶
func (in NodeStatus) VisitNodeStatuses(visitor NodeStatusVisitFn)
type NodeStatusGetter ¶
type NodeStatusGetter interface {
GetNodeExecutionStatus(id NodeID) ExecutableNodeStatus
}
type NodeStatusMap ¶
type NodeStatusMap = map[NodeID]ExecutableNodeStatus
type NodeStatusVisitFn ¶
type NodeStatusVisitFn = func(node NodeID, status ExecutableNodeStatus)
type NodeStatusVisitor ¶
type NodeStatusVisitor interface {
VisitNodeStatuses(visitor NodeStatusVisitFn)
}
type OutputVarMap ¶
type OutputVarMap struct {
*core.VariableMap
}
func (*OutputVarMap) DeepCopy ¶
func (in *OutputVarMap) DeepCopy() *OutputVarMap
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OutputVarMap.
func (*OutputVarMap) DeepCopyInto ¶
func (in *OutputVarMap) DeepCopyInto(out *OutputVarMap)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OutputVarMap) MarshalJSON ¶
func (in *OutputVarMap) MarshalJSON() ([]byte, error)
func (*OutputVarMap) UnmarshalJSON ¶
func (in *OutputVarMap) UnmarshalJSON(b []byte) error
type RetryStrategy ¶
type RetryStrategy struct { // MinAttempts implies the atleast n attempts to try this node before giving up. The atleast here is because we may // fail to write the attempt information and end up retrying again. // Also `0` and `1` both mean atleast one attempt will be done. 0 is a degenerate case. MinAttempts *int `json:"minAttempts"` }
Strategy to be used to Retry a node that is in RetryableFailure state
func (*RetryStrategy) DeepCopy ¶
func (in *RetryStrategy) DeepCopy() *RetryStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RetryStrategy.
func (*RetryStrategy) DeepCopyInto ¶
func (in *RetryStrategy) DeepCopyInto(out *RetryStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubWorkflowNodeStatus ¶
type SubWorkflowNodeStatus struct {
Phase WorkflowPhase `json:"phase"`
}
func (*SubWorkflowNodeStatus) DeepCopy ¶
func (in *SubWorkflowNodeStatus) DeepCopy() *SubWorkflowNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubWorkflowNodeStatus.
func (*SubWorkflowNodeStatus) DeepCopyInto ¶
func (in *SubWorkflowNodeStatus) DeepCopyInto(out *SubWorkflowNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (SubWorkflowNodeStatus) GetPhase ¶
func (s SubWorkflowNodeStatus) GetPhase() WorkflowPhase
func (*SubWorkflowNodeStatus) SetPhase ¶
func (s *SubWorkflowNodeStatus) SetPhase(phase WorkflowPhase)
type TaskExecutionIdentifier ¶
type TaskExecutionIdentifier struct {
*core.TaskExecutionIdentifier
}
func (*TaskExecutionIdentifier) DeepCopy ¶
func (in *TaskExecutionIdentifier) DeepCopy() *TaskExecutionIdentifier
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskExecutionIdentifier.
func (*TaskExecutionIdentifier) DeepCopyInto ¶
func (in *TaskExecutionIdentifier) DeepCopyInto(out *TaskExecutionIdentifier)
type TaskNodeStatus ¶
type TaskNodeStatus struct { Phase types.TaskPhase `json:"phase,omitempty"` PhaseVersion uint32 `json:"phaseVersion,omitempty"` CustomState types.CustomState `json:"custom,omitempty"` }
func (*TaskNodeStatus) DeepCopy ¶
func (in *TaskNodeStatus) DeepCopy() *TaskNodeStatus
func (*TaskNodeStatus) DeepCopyInto ¶
func (in *TaskNodeStatus) DeepCopyInto(out *TaskNodeStatus)
func (TaskNodeStatus) GetCustomState ¶
func (in TaskNodeStatus) GetCustomState() types.CustomState
func (TaskNodeStatus) GetPhase ¶
func (in TaskNodeStatus) GetPhase() types.TaskPhase
func (TaskNodeStatus) GetPhaseVersion ¶
func (in TaskNodeStatus) GetPhaseVersion() uint32
func (*TaskNodeStatus) SetCustomState ¶
func (in *TaskNodeStatus) SetCustomState(state types.CustomState)
func (*TaskNodeStatus) SetPhase ¶
func (in *TaskNodeStatus) SetPhase(phase types.TaskPhase)
func (*TaskNodeStatus) SetPhaseVersion ¶
func (in *TaskNodeStatus) SetPhaseVersion(version uint32)
func (*TaskNodeStatus) UpdateCustomState ¶
func (in *TaskNodeStatus) UpdateCustomState(state types.CustomState)
func (*TaskNodeStatus) UpdatePhase ¶
func (in *TaskNodeStatus) UpdatePhase(phase types.TaskPhase, phaseVersion uint32)
type TaskSpec ¶
type TaskSpec struct {
*core.TaskTemplate
}
func (*TaskSpec) CoreTask ¶
func (in *TaskSpec) CoreTask() *core.TaskTemplate
func (*TaskSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskSpec.
func (*TaskSpec) DeepCopyInto ¶
func (*TaskSpec) MarshalJSON ¶
func (*TaskSpec) UnmarshalJSON ¶
type TaskType ¶
type TaskType = string
TaskType is a dynamic enumeration, that is defined by configuration
type WorkflowExecutionIdentifier ¶
type WorkflowExecutionIdentifier struct {
*core.WorkflowExecutionIdentifier
}
func (*WorkflowExecutionIdentifier) DeepCopy ¶
func (in *WorkflowExecutionIdentifier) DeepCopy() *WorkflowExecutionIdentifier
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowExecutionIdentifier.
func (*WorkflowExecutionIdentifier) DeepCopyInto ¶
func (in *WorkflowExecutionIdentifier) DeepCopyInto(out *WorkflowExecutionIdentifier)
type WorkflowID ¶
type WorkflowID = string
type WorkflowMeta ¶
type WorkflowMeta interface { GetExecutionID() ExecutionID GetK8sWorkflowID() types.NamespacedName NewControllerRef() metav1.OwnerReference GetNamespace() string GetCreationTimestamp() metav1.Time GetAnnotations() map[string]string GetLabels() map[string]string GetName() string GetServiceAccountName() string }
WorkflowMeta provides an interface to retrieve labels, annotations and other concepts that are declared only once for the top level workflow
type WorkflowMetaExtended ¶
type WorkflowMetaExtended interface { WorkflowMeta GetTask(id TaskID) (ExecutableTask, error) FindSubWorkflow(subID WorkflowID) ExecutableSubWorkflow GetExecutionStatus() ExecutableWorkflowStatus }
type WorkflowNodeSpec ¶
type WorkflowNodeSpec struct { // Either one of the two LaunchPlanRefID *LaunchPlanRefID `json:"launchPlanRefId,omitempty"` // We currently want the SubWorkflow to be completely contained in the node. this is because // We use the node status to store the information of the execution. // Important Note: This may cause a bloat in case we use the same SubWorkflow in multiple nodes. The recommended // technique for that is to use launch plan refs. This is because we will end up executing the launch plan refs as // disparate executions in Flyte propeller. This is potentially better as it prevents us from hitting the storage limit // in etcd //+optional. // Workflow *WorkflowSpec `json:"workflow,omitempty"` SubWorkflowReference *WorkflowID `json:"subWorkflowRef,omitempty"` }
func (*WorkflowNodeSpec) DeepCopy ¶
func (in *WorkflowNodeSpec) DeepCopy() *WorkflowNodeSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowNodeSpec.
func (*WorkflowNodeSpec) DeepCopyInto ¶
func (in *WorkflowNodeSpec) DeepCopyInto(out *WorkflowNodeSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkflowNodeSpec) GetLaunchPlanRefID ¶
func (in *WorkflowNodeSpec) GetLaunchPlanRefID() *LaunchPlanRefID
func (*WorkflowNodeSpec) GetSubWorkflowRef ¶
func (in *WorkflowNodeSpec) GetSubWorkflowRef() *WorkflowID
type WorkflowNodeStatus ¶
type WorkflowNodeStatus struct {
WorkflowName string `json:"name"`
}
func (*WorkflowNodeStatus) DeepCopy ¶
func (in *WorkflowNodeStatus) DeepCopy() *WorkflowNodeStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowNodeStatus.
func (*WorkflowNodeStatus) DeepCopyInto ¶
func (in *WorkflowNodeStatus) DeepCopyInto(out *WorkflowNodeStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkflowNodeStatus) GetWorkflowExecutionName ¶
func (in *WorkflowNodeStatus) GetWorkflowExecutionName() string
func (*WorkflowNodeStatus) SetWorkflowExecutionName ¶
func (in *WorkflowNodeStatus) SetWorkflowExecutionName(name string)
type WorkflowPhase ¶
type WorkflowPhase int
WorkflowPhase indicates current state of the Workflow.
const ( WorkflowPhaseReady WorkflowPhase = iota WorkflowPhaseRunning WorkflowPhaseSucceeding WorkflowPhaseSuccess WorkflowPhaseFailing WorkflowPhaseFailed WorkflowPhaseAborted )
func (WorkflowPhase) String ¶
func (p WorkflowPhase) String() string
type WorkflowSpec ¶
type WorkflowSpec struct { ID WorkflowID `json:"id"` Nodes map[NodeID]*NodeSpec `json:"nodes"` // Defines the set of connections (both data dependencies and execution dependencies) that the graph is // formed of. The execution engine will respect and follow these connections as it determines which nodes // can and should be executed. Connections Connections `json:"connections"` // Defines a single node to execute in case the system determined the Workflow has failed. OnFailure *NodeSpec `json:"onFailure,omitempty"` // Defines the declaration of the outputs types and names this workflow is expected to generate. Outputs *OutputVarMap `json:"outputs,omitempty"` // Defines the data links used to construct the final outputs of the workflow. Bindings will typically // refer to specific outputs of a subset of the nodes executed in the Workflow. When executing the end-node, // the execution engine will traverse these bindings and assemble the final set of outputs of the workflow. OutputBindings []*Binding `json:"outputBindings,omitempty"` }
WorkflowSpec is the spec for the actual Flyte Workflow (DAG)
func (*WorkflowSpec) DeepCopy ¶
func (in *WorkflowSpec) DeepCopy() *WorkflowSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowSpec.
func (*WorkflowSpec) DeepCopyInto ¶
func (in *WorkflowSpec) DeepCopyInto(out *WorkflowSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkflowSpec) GetConnections ¶
func (in *WorkflowSpec) GetConnections() *Connections
func (*WorkflowSpec) GetID ¶
func (in *WorkflowSpec) GetID() WorkflowID
func (*WorkflowSpec) GetNode ¶
func (in *WorkflowSpec) GetNode(nodeID NodeID) (ExecutableNode, bool)
func (*WorkflowSpec) GetNodes ¶
func (in *WorkflowSpec) GetNodes() []NodeID
func (*WorkflowSpec) GetOnFailureNode ¶
func (in *WorkflowSpec) GetOnFailureNode() ExecutableNode
func (*WorkflowSpec) GetOutputBindings ¶
func (in *WorkflowSpec) GetOutputBindings() []*Binding
func (*WorkflowSpec) GetOutputs ¶
func (in *WorkflowSpec) GetOutputs() *OutputVarMap
func (*WorkflowSpec) StartNode ¶
func (in *WorkflowSpec) StartNode() ExecutableNode
type WorkflowStatus ¶
type WorkflowStatus struct { Phase WorkflowPhase `json:"phase"` StartedAt *metav1.Time `json:"startedAt,omitempty"` StoppedAt *metav1.Time `json:"stoppedAt,omitempty"` LastUpdatedAt *metav1.Time `json:"lastUpdatedAt,omitempty"` Message string `json:"message,omitempty"` DataDir DataReference `json:"dataDir,omitempty"` OutputReference DataReference `json:"outputRef,omitempty"` NodeStatus map[NodeID]*NodeStatus `json:"nodeStatus,omitempty"` // Number of Attempts completed with rounds resulting in error. this is used to cap out poison pill workflows // that spin in an error loop. The value should be set at the global level and will be enforced. At the end of // the retries the workflow will fail FailedAttempts uint32 `json:"failedAttempts,omitempty"` }
func (*WorkflowStatus) ConstructNodeDataDir ¶
func (in *WorkflowStatus) ConstructNodeDataDir(ctx context.Context, constructor storage.ReferenceConstructor, name NodeID) (storage.DataReference, error)
func (*WorkflowStatus) DeepCopy ¶
func (in *WorkflowStatus) DeepCopy() *WorkflowStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkflowStatus.
func (*WorkflowStatus) DeepCopyInto ¶
func (in *WorkflowStatus) DeepCopyInto(out *WorkflowStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*WorkflowStatus) Equals ¶
func (in *WorkflowStatus) Equals(other *WorkflowStatus) bool
func (*WorkflowStatus) GetDataDir ¶
func (in *WorkflowStatus) GetDataDir() DataReference
func (*WorkflowStatus) GetLastUpdatedAt ¶
func (in *WorkflowStatus) GetLastUpdatedAt() *metav1.Time
func (*WorkflowStatus) GetMessage ¶
func (in *WorkflowStatus) GetMessage() string
func (*WorkflowStatus) GetNodeExecutionStatus ¶
func (in *WorkflowStatus) GetNodeExecutionStatus(id NodeID) ExecutableNodeStatus
func (*WorkflowStatus) GetOutputReference ¶
func (in *WorkflowStatus) GetOutputReference() DataReference
func (*WorkflowStatus) GetPhase ¶
func (in *WorkflowStatus) GetPhase() WorkflowPhase
func (*WorkflowStatus) GetStartedAt ¶
func (in *WorkflowStatus) GetStartedAt() *metav1.Time
func (*WorkflowStatus) GetStoppedAt ¶
func (in *WorkflowStatus) GetStoppedAt() *metav1.Time
func (*WorkflowStatus) IncFailedAttempts ¶
func (in *WorkflowStatus) IncFailedAttempts()
func (*WorkflowStatus) IsTerminated ¶
func (in *WorkflowStatus) IsTerminated() bool
func (*WorkflowStatus) SetDataDir ¶
func (in *WorkflowStatus) SetDataDir(d DataReference)
func (*WorkflowStatus) SetMessage ¶
func (in *WorkflowStatus) SetMessage(msg string)
func (*WorkflowStatus) SetOutputReference ¶
func (in *WorkflowStatus) SetOutputReference(reference DataReference)
func (*WorkflowStatus) UpdatePhase ¶
func (in *WorkflowStatus) UpdatePhase(p WorkflowPhase, msg string)