flytekit.remote.executions.FlyteTaskExecution#

class flytekit.remote.executions.FlyteTaskExecution(*args, **kwargs)[source]#

A class encapsulating a task execution being run on a Flyte remote backend.

Methods

classmethod from_flyte_idl(proto)[source]#
Parameters:

proto (flyteidl.admin.task_execution_pb2.TaskExecution)

Return type:

TaskExecution

classmethod promote_from_model(base_model)[source]#
Parameters:

base_model (TaskExecution)

Return type:

FlyteTaskExecution

serialize_to_string()[source]#
Return type:

str

short_string()[source]#
Return type:

Text

to_flyte_idl()[source]#
Return type:

flyteidl.admin.task_execution_pb2.TaskExecution

verbose_string()[source]#
Return type:

Text

Attributes

closure

TaskExecutionClosure

Type:

rtype

error

If execution is in progress, raise an exception. Otherwise, return None if no error was present upon reaching completion.

id

flytekit.models.core.identifier.TaskExecutionIdentifier

Type:

rtype

input_uri

Text

Type:

rtype

inputs
is_done

Whether or not the execution is complete.

is_empty
is_parent

bool

Type:

rtype

outputs

Returns the outputs LiteralsResolver to the execution :raises: FlyteAssertion error if execution is in progress or execution ended in error.

Type:

return

task