TJaniF opened a new issue, #48408:
URL: https://github.com/apache/airflow/issues/48408

   ### Apache Airflow version
   
   3.0.0
   
   ### If "Other Airflow 2 version" selected, which one?
   
   Current main and last nightly
   
   ### What happened?
   
   Using these two DAGs correctly fetches "Hello" in Airflow 2.10 but "None" in 
3.0.0
   
   ```
   from airflow.sdk import dag
   from airflow.decorators import task
   
   
   @dag
   def cross_dag_xcom_upstream():
   
       @task
       def push_to_xcom():
           return "Hello!"
   
       push_to_xcom()
   
   
   cross_dag_xcom_upstream()
   
   
   @dag
   def cross_dag_xcom_downstream():
   
       @task
       def pull_from_xcom(**context):
           my_data = context["task_instance"].xcom_pull(
               dag_id="cross_dag_xcom_upstream",
               task_ids="push_to_xcom",
               key="return_value",
               include_prior_dates=True,
           )
           return my_data
       
       pull_from_xcom()
   
   
   cross_dag_xcom_downstream()
   ```
   
   ### What you think should happen instead?
   
   The pull_from_xcom() task should return "Hello"
   
   ### How to reproduce
   
   1. Add the tasks above
   2. Run the upstream task
   3. Run the downstream task
   4. See "None" in the task logs.
   
   
![Image](https://github.com/user-attachments/assets/d278dccd-71d9-45fb-961c-16a4b274ee9c)
   
   
   Same dags (with adjusted import for the dag decorator) in Airflow 2.10:
   
   
![Image](https://github.com/user-attachments/assets/d14789ac-086b-440c-b595-01b5f4aac90e)
   
   ### Operating System
   
   MacOS 15.3.2 (24D81)
   
   ### Versions of Apache Airflow Providers
   
   None
   
   ### Deployment
   
   Other
   
   ### Deployment details
   
   Astro CLI for the nightly, breeze for main.
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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