airflow.decorators

Submodules

Package Contents

Classes

TaskDecorator

Type declaration for task_decorator_factory return type.

TaskDecoratorCollection

Implementation to provide the @task syntax.

Functions

branch_task([python_callable, multiple_outputs])

Wraps a python function into a BranchPythonOperator.

external_python_task([python, python_callable, …])

Wraps a callable into an Airflow operator to run via a Python virtual environment.

python_task([python_callable, multiple_outputs])

Wraps a function into an Airflow operator.

virtualenv_task([python_callable, multiple_outputs])

Wraps a callable into an Airflow operator to run via a Python virtual environment.

sensor_task([python_callable])

Wraps a function into an Airflow operator.

short_circuit_task([python_callable, multiple_outputs])

Wraps a function into an ShortCircuitOperator.

task_group

Implements the @task_group function decorator.

dag([dag_id, description, schedule, …])

Python dag decorator. Wraps a function into an Airflow DAG.

Attributes

task

setup

teardown

class airflow.decorators.TaskDecoratorCollection[source]

Implementation to provide the @task syntax.

airflow.decorators.task[source]

airflow.decorators.setup: Callable[source]

airflow.decorators.teardown: Callable[source]