airflow.decorators.setup_teardown¶

Module Contents¶

Classes¶

ContextWrapper

A list subclass that has a context manager that pushes setup/teardown tasks to the context.

Functions¶

setup_task(func)

teardown_task([_func, on_failure_fail_dagrun])

Attributes¶

context_wrapper

airflow.decorators.setup_teardown.setup_task(func)[source]¶
airflow.decorators.setup_teardown.teardown_task(_func=None, *, on_failure_fail_dagrun=False)[source]¶
class airflow.decorators.setup_teardown.ContextWrapper(tasks)[source]¶

Bases: list

A list subclass that has a context manager that pushes setup/teardown tasks to the context.

__enter__()[source]¶
__exit__(exc_type, exc_val, exc_tb)[source]¶
airflow.decorators.setup_teardown.context_wrapper[source]¶

Was this entry helpful?