Skip to content

Handle returned None when multiple_outputs is True#32625

Merged
pierrejeambrun merged 1 commit into
apache:mainfrom
hussein-awala:fix_multiple_outputs_return_none
Jul 16, 2023
Merged

Handle returned None when multiple_outputs is True#32625
pierrejeambrun merged 1 commit into
apache:mainfrom
hussein-awala:fix_multiple_outputs_return_none

Conversation

@hussein-awala

Copy link
Copy Markdown
Member

closes: #32622

Currently when multiple_outputs is True, the task fails if the returned value is not dict, even None is not accepted. This PR updates the method _handle_output to add None as accepted return value when multiple_outputs is True.


^ 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 requested a review from potiuk July 15, 2023 16:58
@eladkal eladkal added this to the Airflow 2.6.4 milestone Jul 15, 2023
@eladkal eladkal added the type:bug-fix Changelog: Bug Fixes label Jul 15, 2023
@pierrejeambrun
pierrejeambrun merged commit a5dd08a into apache:main Jul 16, 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.

When multiple-outputs gets None as return value it crashes

4 participants