Build Custom Task Types#

These modules are useful to extend the base task types.



This is a small helper function to convert the keyword arguments to an OrderedDict of types.

PythonTask(*args, **kwargs)

Base Class for all Tasks with a Python native Interface.

Task(task_type, name[, interface, metadata, ...])

The base of all Tasks in flytekit.

TaskMetadata([cache, cache_serialize, ...])

Metadata for a Task.


Flytekit tasks interact with the Flyte platform very, very broadly in two steps.


This exception should be used to indicate that the outputs generated by this can be safely ignored.


PythonFunctionTask(*args, **kwargs)

A Python Function task should be used as the base for all extensions that have a python function.

PythonInstanceTask(*args, **kwargs)

This class should be used as the base class for all Tasks that do not have a user defined function body, but have a platform defined execute method.