Skip to content

3.0.3 xcom_pull inconsistent content returned when using file storage #53432

@puzzle9

Description

@puzzle9

Apache Airflow version

3.0.3

If "Other Airflow 2 version" selected, which one?

3.0.2

What happened?

In version 3.0.2, the returned content is
In version 3.0.3, the returned path is

normal

Image Image

error

Image Image

What you think should happen instead?

No response

How to reproduce

from datetime import datetime
from airflow import DAG
from airflow.decorators import task

with DAG(
        dag_id='dag_test_xcom',
        schedule='@once',
        start_date=datetime(2025, 7, 10),
) as dag:
    @task(do_xcom_push=True)
    def gen_xcom():
        print("data")
        return 'a' * 1024 * 1024


    @task
    def get_xcom(**context):
        datas = context['ti'].xcom_pull(task_ids='gen_xcom')
        print(datas)


    gen_xcom() >> [get_xcom()]

Operating System

Debian GNU/Linux 12 (bookworm)

Versions of Apache Airflow Providers

No response

Deployment

Docker-Compose

Deployment details

No response

Anything else?

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions