Skip to content

Fall back to stringification for XCom#55880

Merged
kaxil merged 1 commit into
apache:mainfrom
astronomer:xcom-endpoint-xcom
Sep 19, 2025
Merged

Fall back to stringification for XCom#55880
kaxil merged 1 commit into
apache:mainfrom
astronomer:xcom-endpoint-xcom

Conversation

@uranusjr

@uranusjr uranusjr commented Sep 19, 2025

Copy link
Copy Markdown
Member

Even when stringify=false, we still need to make sure we have something serializable to return in the API response. If the XCom value can't work, we should still stringify it so the API can return something.

This was what API v1 did in Airflow 2.x.

Fix #55781.


^ 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 airflow-core/newsfragments.

@pierrejeambrun

Copy link
Copy Markdown
Member

Maybe a small test could help prevent regression in the future

Even when stringify=false, we still need to make sure we have something
serializable to return in the API response. If the XCom value can't
work, we should still stringify it so the API can return something.

This was what API v1 did in Airflow 2.x.
@kaxil kaxil merged commit e4ea69c into apache:main Sep 19, 2025
105 checks passed
@kaxil kaxil deleted the xcom-endpoint-xcom branch September 19, 2025 13:29
@kaxil kaxil added this to the Airflow 3.1.0 milestone Sep 19, 2025
kaxil pushed a commit that referenced this pull request Sep 19, 2025
Even when stringify=false, we still need to make sure we have something
serializable to return in the API response. If the XCom value can't
work, we should still stringify it so the API can return something.

This was what API v1 did in Airflow 2.x.

(cherry picked from commit e4ea69c)
KatalKavya96 pushed a commit to KatalKavya96/airflow that referenced this pull request Sep 22, 2025
Even when stringify=false, we still need to make sure we have something
serializable to return in the API response. If the XCom value can't
work, we should still stringify it so the API can return something.

This was what API v1 did in Airflow 2.x.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Internal server error when migrating from Airflow 2 to 3 with Dataset dag

5 participants