kaxil commented on a change in pull request #13763:
URL: https://github.com/apache/airflow/pull/13763#discussion_r561450346
##########
File path: airflow/operators/branch.py
##########
@@ -49,4 +49,6 @@ def choose_branch(self, context: Dict) -> Union[str,
Iterable[str]]:
raise NotImplementedError
def execute(self, context: Dict):
- self.skip_all_except(context['ti'], self.choose_branch(context))
+ branches_to_execute = self.choose_branch(context)
+ self.skip_all_except(context['ti'], branches_to_execute)
+ return branches_to_execute
Review comment:
Oh yes,
https://github.com/apache/airflow/blob/3fd5ef355556cf0ad7896bb570bbe4b2eabbf46e/airflow/models/taskinstance.py#L1315-L1318
should take care of it
----------------------------------------------------------------
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]