flytekit.remote.tasks.executions.FlyteTaskExecution

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

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

Parameters
  • id (flytekit.models.core.identifier.TaskExecutionIdentifier) –

  • input_uri (Text) –

  • closure (TaskExecutionClosure) –

  • is_parent (bool) –

Methods

classmethod from_flyte_idl(proto)
Parameters

proto (flyteidl.admin.task_execution_pb2.TaskExecution) –

Return type

TaskExecution

get_child_executions(filters=None)[source]
classmethod promote_from_model(base_model)[source]
Parameters

base_model (flytekit.models.admin.task_execution.TaskExecution) –

Return type

flytekit.remote.tasks.executions.FlyteTaskExecution

short_string()
Return type

Text

sync()[source]

Syncs the state of the underlying execution artifact with the state observed by the platform.

to_flyte_idl()
Return type

flyteidl.admin.task_execution_pb2.TaskExecution

verbose_string()
Return type

Text

wait_for_completion(timeout=None, poll_interval=None)
Parameters
  • timeout (datetime.timedelta) – Amount of time to wait until the execution has completed before timing out. If not set or set to None, this method will wait for infinite.

  • poll_interval (datetime.timedelta) – Duration to wait between polling for a completion update.

Return type

None

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

Returns the inputs of the task execution in the standard Python format that is produced by the type engine.

is_complete

Whether or not the execution is complete.

is_empty
is_parent

bool

Type

rtype

outputs

Returns the outputs of the task execution, if available, in the standard Python format that is produced by the type engine.

Raises

FlyteAssertion error if execution is in progress or execution ended in error.