Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated example python code #44

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 15 additions & 5 deletions src/docs/reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,8 @@ FLOW

The ``FLOW`` atom defines the DAG links between the operators.

``FLOW`` is a dict of lists, where a key is a downstream operator name,
and a value is a list of upstream operators.
``FLOW`` is a dict of lists, where a key is an upstream operator name,
and a value is a list of downstream operators.

Consider the following flow:

Expand All @@ -221,10 +221,20 @@ equivalent would be:

.. code-block:: python

my_sensor.set_upstream(my_task_1)
my_sensor.set_upstream(my_task_2)
my_sensor.set_downstream(my_task_1)
my_sensor.set_downstream(my_task_2)

my_task_1.set_upstream(my_task_3)
my_task_1.set_downstream(my_task_3)

Or in Airflow 1.8, this can be done with the Python bitshift operators as:

.. code-block:: python

my_sensor >> my_task_1
my_sensor >> my_task_2

my_task_1 >> my_task_3


This would be rendered in the Airflow web-interface like this:

Expand Down