You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2019/06/21 15:51:49 UTC

[GitHub] [airflow] ashb commented on a change in pull request #5231: [AIRFLOW-4456] Add sub-classable BaseBranchOperator

ashb commented on a change in pull request #5231: [AIRFLOW-4456] Add sub-classable BaseBranchOperator
URL: https://github.com/apache/airflow/pull/5231#discussion_r296294157
 
 

 ##########
 File path: docs/concepts.rst
 ##########
 @@ -581,6 +581,26 @@ For example:
 
   start_op >> branch_op >> [continue_op, stop_op]
 
+If you wish to implement your own operators with branching functionality,
+you can inherit from ``BranchOperator``, which behaves similarly to
+``BranchPythonOperator`` but expects you to provide an implementation of the
+method ``choose_branch``. As with the callable for ``BranchPythonOperator``,
 
 Review comment:
   ```suggestion
   method ``choose_branch``. As with the callable for BranchPythonOperator,
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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