airflow.models.taskmixin
¶
Module Contents¶
-
class
airflow.models.taskmixin.
TaskMixin
[source]¶ Mixing implementing common chain methods like >> and <<.
In the following functions we use: Task = Union[BaseOperator, XComArg] No type annotations due to cyclic imports.
-
set_upstream
(self, other: Union[‘TaskMixin’, Sequence[‘TaskMixin’]])[source]¶ Set a task or a task list to be directly upstream from the current task.
-
set_downstream
(self, other: Union[‘TaskMixin’, Sequence[‘TaskMixin’]])[source]¶ Set a task or a task list to be directly downstream from the current task.
-
update_relative
(self, other: ‘TaskMixin’, upstream=True)[source]¶ Update relationship information about another TaskMixin. Default is no-op. Override if necessary.
-