Branching related additions to docs

This commit is contained in:
Maxime Beauchemin 2015-11-23 15:42:34 -08:00
Родитель a3dacf6684
Коммит 4497b5370c
2 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -83,6 +83,8 @@ class BranchPythonOperator(PythonOperator):
Note that using tasks with ``depends_on_past=True`` downstream from
``BranchPythonOperator`` is logically unsound as ``skipped`` status
will invariably lead to block tasks that depend on their past successes.
``skipped`` states propagates where all directly upstream tasks are
``skipped``.
"""
def execute(self, context):
branch = super(BranchPythonOperator, self).execute(context)

Просмотреть файл

@ -211,6 +211,12 @@ is followed, and all of the other paths are skipped.
The task_id returned by the Python function has to be referencing a task
directly downstream from the BranchPythonOperator task.
Note that using tasks with ``depends_on_past=True`` downstream from
``BranchPythonOperator`` is logically unsound as ``skipped`` status
will invariably lead to block tasks that depend on their past successes.
``skipped`` states propagates where all directly upstream tasks are
``skipped``.
SLAs
''''