Pebble32 commented on PR #77230:
URL: https://github.com/apache/airflow/pull/77230#issuecomment-7140728716
I tried this against main for @uranusjr's question. With #76555 in a `Date`
or `Buffer` doesn't hang anymore. The supervisor rejects it in a couple of
seconds but the task log only shows `SetXCom failed: GENERIC_ERROR` without the
key or the type.
Good thing is this also catches values main accepts silently. A task that
returns `new Map([["a", 1]])` or a `Set` succeeds on main and the stored XCom
is just `{}`. With this PR the task fails with `XCom "return_value" holds a
Map, which JSON cannot carry ...`.
One thing to note is that a class instance like `new Point()` is stored as
`{"x": 1, "y": 2}` on main and in 1.0.0 and this PR rejects it. That can break
a task that works today so maybe worth a line in the release notes. Returning
`{ ...value }` works as a workaround.
--
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]