1.16.10

flytekit.models.admin.workflow

Directory

Classes

Class Description
Workflow
WorkflowClosure
WorkflowSpec

flytekit.models.admin.workflow.Workflow

class Workflow(
    id,
    closure,
    short_description,
)
Parameter Type Description
id
closure
short_description

Methods

Method Description
from_flyte_idl()
serialize_to_string()
short_string() :rtype: Text.
to_flyte_idl() :rtype: flyteidl.

from_flyte_idl()

def from_flyte_idl(
    pb2_object,
)
Parameter Type Description
pb2_object

serialize_to_string()

def serialize_to_string()

short_string()

def short_string()

:rtype: Text

to_flyte_idl()

def to_flyte_idl()

:rtype: flyteidl.admin.workflow_pb2.Workflow

Properties

Property Type Description
closure
:rtype: WorkflowClosure
id
:rtype: flytekit.models.core.identifier.Identifier
is_empty
short_description
:rtype: str

flytekit.models.admin.workflow.WorkflowClosure

class WorkflowClosure(
    compiled_workflow,
)
Parameter Type Description
compiled_workflow

Methods

Method Description
from_flyte_idl()
serialize_to_string()
short_string() :rtype: Text.
to_flyte_idl() :rtype: flyteidl.

from_flyte_idl()

def from_flyte_idl(
    p,
)
Parameter Type Description
p

serialize_to_string()

def serialize_to_string()

short_string()

def short_string()

:rtype: Text

to_flyte_idl()

def to_flyte_idl()

:rtype: flyteidl.admin.workflow_pb2.WorkflowClosure

Properties

Property Type Description
compiled_workflow
:rtype: flytekit.models.core.compiler.CompiledWorkflowClosure
is_empty

flytekit.models.admin.workflow.WorkflowSpec

class WorkflowSpec(
    template: flytekit.models.core.workflow.WorkflowTemplate,
    sub_workflows: typing.List[flytekit.models.core.workflow.WorkflowTemplate],
    docs: typing.Optional[flytekit.models.documentation.Documentation],
)

This object fully encapsulates the specification of a workflow

Parameter Type Description
template flytekit.models.core.workflow.WorkflowTemplate
sub_workflows typing.List[flytekit.models.core.workflow.WorkflowTemplate]
docs typing.Optional[flytekit.models.documentation.Documentation]

Methods

Method Description
from_flyte_idl()
serialize_to_string()
short_string() :rtype: Text.
to_flyte_idl() :rtype: flyteidl.

from_flyte_idl()

def from_flyte_idl(
    pb2_object,
)
Parameter Type Description
pb2_object flyteidl.admin.workflow_pb2.WorkflowSpec :rtype: WorkflowSpec

serialize_to_string()

def serialize_to_string()

short_string()

def short_string()

:rtype: Text

to_flyte_idl()

def to_flyte_idl()

:rtype: flyteidl.admin.workflow_pb2.WorkflowSpec

Properties

Property Type Description
docs
:rtype: Description entity for the workflow
is_empty
sub_workflows
:rtype: list[flytekit.models.core.workflow.WorkflowTemplate]
template
:rtype: flytekit.models.core.workflow.WorkflowTemplate