flytekit.remote.entities.FlyteWorkflowNode#
- class flytekit.remote.entities.FlyteWorkflowNode(flyte_workflow=None, flyte_launch_plan=None)[source]#
A class encapsulating a workflow that a Flyte node needs to execute.
Refers to a the workflow the node is to execute. One of the references must be supplied.
- Parameters
launchplan_ref (flytekit.models.core.identifier.Identifier) – [Optional] A globally unique identifier for the launch plan. Should map to Admin.
sub_workflow_ref (flytekit.models.core.identifier.Identifier) – [Optional] Reference to a subworkflow, that should be defined with the compiler context.
flyte_workflow (FlyteWorkflow) –
flyte_launch_plan (FlyteLaunchPlan) –
Methods
- classmethod from_flyte_idl(pb2_object)#
- Parameters
pb2_object (flyteidl.core.workflow_pb2.WorkflowNode) –
- Return type
WorkflowNode
- classmethod promote_from_model(base_model, sub_workflows, node_launch_plans, tasks, converted_sub_workflows)[source]#
- Parameters
base_model (flytekit.models.core.workflow.WorkflowNode) –
sub_workflows (Dict[flytekit.models.core.identifier.Identifier, flytekit.models.core.workflow.WorkflowTemplate]) –
node_launch_plans (Dict[flytekit.models.core.identifier.Identifier, flytekit.models.launch_plan.LaunchPlanSpec]) –
tasks (Dict[flytekit.models.core.identifier.Identifier, flytekit.remote.entities.FlyteTask]) –
converted_sub_workflows (Dict[flytekit.models.core.identifier.Identifier, flytekit.remote.entities.FlyteWorkflow]) –
- Return type
Tuple[flytekit.remote.entities.FlyteWorkflowNode, Dict[flytekit.models.core.identifier.Identifier, flytekit.remote.entities.FlyteWorkflow]]
- short_string()#
- Return type
Text
- to_flyte_idl()#
- Return type
flyteidl.core.workflow_pb2.WorkflowNode
- verbose_string()#
- Return type
Text
Attributes
- flyte_launch_plan
- flyte_workflow
- is_empty
- launchplan_ref
A globally unique identifier for the launch plan, which should map to Admin.
- reference
flytekit.models.core.identifier.Identifier
- Type
rtype
- sub_workflow_ref