Skip to content

Fix returned value when ShortCircuitOperator condition is falsy and there is not downstream tasks#32623

Merged
potiuk merged 1 commit into
apache:mainfrom
hussein-awala:fix/shortcircuit_xcom
Jul 15, 2023
Merged

Fix returned value when ShortCircuitOperator condition is falsy and there is not downstream tasks#32623
potiuk merged 1 commit into
apache:mainfrom
hussein-awala:fix/shortcircuit_xcom

Conversation

@hussein-awala

Copy link
Copy Markdown
Member

related: #32569
related: #32538

#32569 has fixed a bug in the ShortCircuitOperator by returning the falsy result as it, to create the xcom, however, in the same time #32538 has fixed another bug by adding a fast return None when there is not downstream tasks. This PR replaces the return None by returning the falsy result as it is to handle the two bugs.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@hussein-awala hussein-awala added the type:bug-fix Changelog: Bug Fixes label Jul 15, 2023
@hussein-awala hussein-awala added this to the Airflow 2.6.4 milestone Jul 15, 2023
@potiuk

potiuk commented Jul 15, 2023

Copy link
Copy Markdown
Member

It's pass the tests that failed in main. Merging.

@potiuk
potiuk merged commit 117a531 into apache:main Jul 15, 2023
@eladkal eladkal modified the milestones: Airflow 2.6.4, Airflow 2.7.0 Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug-fix Changelog: Bug Fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants