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

   ### Apache Airflow version
   
   3.0.4
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   I've migrated to airflow 3.0.4 version.
   I'm used to passing attributes through xcoms between runs but it's returning 
None all the time now.
   It works pulling from other tasks, I works for same task if I push Xcom just 
before pulling it, but not for previous runs.  
   
   Researching it, I've discovered that I was using old Xcom backend path, but 
changing it
   ( airflow.sdk.execution_time.xcom.BaseXCom >> 
airflow.sdk.bases.xcom.BaseXCom )
   didn't solve the issue.
   
   The code I use is just:
   
   @task
   def tst_xcom(**context):
       ti = context['ti']
       xcom = ti.xcom_pull(task_ids='tst_xcom', key='ll')
       logger.info(f'prev_xcom: {xcom}')
       import pendulum
       ti.xcom_push(key='ll', value=f'll_{str(pendulum.now())}')
   
   Xcom can be seen in Xcom tab after each run, Xcom exists in db, but still 
pull wont work.
   Checked that on Airflow 3.0.3 as well - same.
   
   Thank you in advance!
   
   
   ### What you think should happen instead?
   
   _No response_
   
   ### How to reproduce
   
   Airflow 3.0.4 / 3.0.3, task pulling itself's previous xcom.
   
   ### Operating System
   
   Ubuntu 24.04.2 LTS
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-celery==3.10.0
   apache-airflow-providers-common-compat==1.3.0
   apache-airflow-providers-common-io==1.5.0
   apache-airflow-providers-common-sql==1.21.0
   apache-airflow-providers-fab==1.5.2
   apache-airflow-providers-ftp==3.12.0
   apache-airflow-providers-http==5.0.0
   apache-airflow-providers-imap==3.8.0
   apache-airflow-providers-smtp==1.9.0
   apache-airflow-providers-sqlite==4.0.0
   apache-airflow-providers-ssh==4.0.0
   
   ### Deployment
   
   Docker-Compose
   
   ### Deployment details
   
   Docker version 28.3.3, build 980b856
   
   ### 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