Xcom Airflow Jun 2026

You can manually trigger communication using the xcom_push and xcom_pull methods available on the task instance ( ti ) object.

While XComs are powerful, they are not a universal solution for data transfer. Following best practices from Astronomer and the official Airflow docs is vital for performance. ✅ Best Use Cases xcom airflow

If a Python callable returns a value, Airflow automatically pushes it under the key return_value . You can manually trigger communication using the xcom_push

In this example, task1 pushes the string "Hello, World!" to XCOM with the key greeting . task2 then pulls the data from XCOM using the same key and prints it. task1 pushes the string "Hello

There are two primary ways to interact with XComs: explicitly using methods or implicitly through return values. 1. Explicit Push and Pull

Geonode logo
Xcom Airflow Jun 2026