ashb commented on issue #5231: [AIRFLOW-4456] Add BranchOperator
URL: https://github.com/apache/airflow/pull/5231#issuecomment-489055584
 
 
   An alternative would be for you to subclass the existiing 
PythonBranchOperator like this in your code base:
   
   ```python
   class MyBranchOperator(PythonBranchOperator):
       def __int__(**kwargs):
           super().__init__(python_callable=self.choose_branch, **kwargs)
   
       def choose_branch(self):
           return 'task_a' # etc.
   ```
   

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to