Build Custom Task Types

These modules are useful to extend the base task types.

flytekit.core.base_task

kwtypes(**kwargs)

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_version, ...])

Metadata for a Task.

TaskResolverMixin()

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

IgnoreOutputs

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

flytekit.core.python_function_task

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.