FrankYang0529 commented on code in PR #74321:
URL: https://github.com/apache/airflow/pull/74321#discussion_r4193298203
##########
go-sdk/internal/bundle/task.go:
##########
@@ -157,19 +163,24 @@ func (f *taskFunction) call(
)
}
}
+ if branch != nil {
+ // The task pushes the value that decide returns, and decide
runs only on a result that fn
+ // returned without an error. So the task pushes no XCom when
fn or decide fails.
+ if err != nil {
+ return err
+ }
+ value, skipped, err := f.decide(retValues[0].Interface())
+ if err != nil {
+ return err
+ }
+ f.sendXcom(ctx, value, sdkClient, logger)
Review Comment:
Updated it. Thanks for the suggestion.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]