1.16.16

flytekit.models.admin.workflow

Directory

Classes

Class Description
Workflow
WorkflowClosure
WorkflowSpec

flytekit.models.admin.workflow.Workflow

Parameters

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

Properties

Property Type Description
closure None
id None
is_empty None
short_description None

Methods

Method Description
from_flyte_idl()
serialize_to_string()
short_string()
to_flyte_idl()

from_flyte_idl()

def from_flyte_idl(
    pb2_object,
)
Parameter Type Description
pb2_object

Returns: Workflow

serialize_to_string()

def serialize_to_string()

short_string()

def short_string()

Returns: Text

to_flyte_idl()

def to_flyte_idl()

Returns: flyteidl.admin.workflow_pb2.Workflow

flytekit.models.admin.workflow.WorkflowClosure

Parameters

class WorkflowClosure(
    compiled_workflow,
)
Parameter Type Description
compiled_workflow

Properties

Property Type Description
compiled_workflow None
is_empty None

Methods

Method Description
from_flyte_idl()
serialize_to_string()
short_string()
to_flyte_idl()

from_flyte_idl()

def from_flyte_idl(
    p,
)
Parameter Type Description
p

Returns: WorkflowClosure

serialize_to_string()

def serialize_to_string()

short_string()

def short_string()

Returns: Text

to_flyte_idl()

def to_flyte_idl()

Returns: flyteidl.admin.workflow_pb2.WorkflowClosure

flytekit.models.admin.workflow.WorkflowSpec

Parameters

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]

Properties

Property Type Description
docs None
is_empty None
sub_workflows None
template None

Methods

Method Description
from_flyte_idl()
serialize_to_string()
short_string()
to_flyte_idl()

from_flyte_idl()

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

Returns: WorkflowSpec

serialize_to_string()

def serialize_to_string()

short_string()

def short_string()

Returns: Text

to_flyte_idl()

def to_flyte_idl()

Returns: flyteidl.admin.workflow_pb2.WorkflowSpec