Eason09053360 commented on code in PR #75601:
URL: https://github.com/apache/airflow/pull/75601#discussion_r4436206777


##########
go-sdk/pkg/execution/client.go:
##########
@@ -315,6 +315,11 @@ func (c *CoordinatorClient) PushXCom(
        key string,
        value any,
 ) error {
+       // Unlike a task state value, nil is allowed: it is pushed as JSON null.
+       if _, err := validateJSONRepresentable(value); err != nil {
+               return fmt.Errorf("cannot push XCom %q: %w", key, err)
+       }
+
        msg := genmodels.SetXCom{
                Key:    key,
                Value:  value,

Review Comment:
   Applied in c43c7be, thanks!



-- 
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]

Reply via email to