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

   ### Apache Airflow version
   
   2.6.1
   
   ### What happened
   
   Returning multiple values from a taskflow task results in 
   
   `File "/usr/local/lib/python3.10/site-packages/airflow/models/xcom_arg.py", 
line 263, in __iter__
       raise TypeError("'XComArg' object is not iterable")
   TypeError: 'XComArg' object is not iterable`
   
   ### What you think should happen instead
   
   Returning multiple values should unpack as a tuple
   
   ### How to reproduce
   
   @dag(schedule=None, start_date=datetime(2023, 1, 1), catchup=False)
   def testdag():
       
       @task()
       def test():  
           return 'x', 'y'
       _x, _y = test()
   
   testdag()
   
   ### Operating System
   
   5.15.49-linuxkit
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-amazon==8.0.0
   apache-airflow-providers-celery==3.1.0
   apache-airflow-providers-cncf-kubernetes==6.1.0
   apache-airflow-providers-common-sql==1.4.0
   apache-airflow-providers-datadog==3.2.0
   apache-airflow-providers-elasticsearch==4.4.0
   apache-airflow-providers-ftp==3.3.1
   apache-airflow-providers-google==10.0.0
   apache-airflow-providers-http==4.3.0
   apache-airflow-providers-imap==3.1.1
   apache-airflow-providers-microsoft-azure==6.1.0
   apache-airflow-providers-postgres==5.4.0
   apache-airflow-providers-redis==3.1.0
   apache-airflow-providers-snowflake==4.1.0
   apache-airflow-providers-sqlite==3.3.2
   
   ### Deployment
   
   Astronomer
   
   ### Deployment details
   
   Astro runtime 8.3.0 Tested only in local dev mode
   
   ### 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