airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] kaxil closed pull request #4191: [AIRFLOW-3350] Explain how to use Bitshift Composition with lists
Date Thu, 15 Nov 2018 20:33:49 GMT
kaxil closed pull request #4191: [AIRFLOW-3350] Explain how to use Bitshift Composition with
lists
URL: https://github.com/apache/incubator-airflow/pull/4191
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/docs/concepts.rst b/docs/concepts.rst
index 7c0603efa4..2896010248 100644
--- a/docs/concepts.rst
+++ b/docs/concepts.rst
@@ -240,6 +240,25 @@ We can put this all together to build a simple pipeline:
                 python_callable=lambda: print("GOODBYE!"))
         )
 
+Bitshift can also be used with lists. For example:
+
+.. code:: python
+
+    op1 >> [op2, op3]
+
+is equivalent to:
+
+.. code:: python
+
+    op1 >> op2
+    op1 >> op3
+    
+and equivalent to:
+
+.. code:: python
+
+    op1.set_downstream([op2, op3])
+
 Tasks
 =====
 
@@ -908,4 +927,3 @@ would not be scanned by Airflow at all. This improves efficiency of DAG
finding)
 The scope of a ``.airflowignore`` file is the directory it is in plus all its subfolders.
 You can also prepare ``.airflowignore`` file for a subfolder in ``DAG_FOLDER`` and it
 would only be applicable for that subfolder.
-


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message