-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple XCom output in the BaseOperator #37297
Support multiple XCom output in the BaseOperator #37297
Conversation
Thanks for jumping on this request! @hussein-awala |
Yes, we can do that. I wonder if we need to duplicate all the behaviors, for example, inferring |
c5636c6
to
d8e9d54
Compare
I didn't actually notice that there was type-hint based inferral until now 😄 |
Yep. Author of the classic operator should make the decision on their own if they want to return multiple_outputs or not. |
Hi, I think this feature been added by airflow 2.0 + version is this feature dropped before? |
@JoyceChan-KSO yes this feature was available for the TaskFlow style operators already, but missing for the classic operators inheriting from |
closes: #37284
This PR adds a new argument
multiple_outputs
to BaseOperator to push multiple XCom when it set to True instead of pushing the result toreturn_value
XCom.