flytekit.remote.tasks.task.FlyteTask

class flytekit.remote.tasks.task.FlyteTask(id, type, metadata, interface, custom, container=None, task_type_version=0, config=None)[source]

A class encapsulating a remote Flyte task.

Methods

classmethod from_flyte_idl(pb2_object)
Parameters

pb2_object (flyteidl.core.tasks_pb2.TaskTemplate) –

Return type

TaskTemplate

classmethod promote_from_model(base_model)[source]
Parameters

base_model (flytekit.models.core.task.TaskTemplate) –

Return type

flytekit.remote.tasks.task.FlyteTask

short_string()
Return type

Text

to_flyte_idl()
Return type

flyteidl.core.tasks_pb2.TaskTemplate

verbose_string()
Return type

Text

Attributes

config

Arbitrary dictionary containing metadata for parsing and handling custom plugins. :rtype: dict[Text, T]

container

If not None, the target of execution should be a container. :rtype: Container

custom

Arbitrary dictionary containing metadata for custom plugins. :rtype: dict[Text, T]

entity_type_text
guessed_python_interface
id

This is generated by the system and uniquely identifies the task. :rtype: flytekit.models.core.identifier.Identifier

interface
is_empty
k8s_pod
metadata

This contains information needed at runtime to determine behavior such as whether or not outputs are discoverable, timeouts, and retries. :rtype: flytekit.models.core.task.TaskMetadata

resource_type
security_context
sql
task_type_version
type

This is used to identify additional extensions for use by Propeller or SDK. :rtype: Text