Airflow: Xcom

push = PythonOperator(task_id='push_task', python_callable=push_function) pull = PythonOperator(task_id='pull_task', python_callable=pull_function)

Received: Hello from Task 1 3. Return Values as Implicit XComs If a Python callable returns a value, Airflow automatically pushes it under the key return_value . xcom airflow

Here’s a technical write-up on — covering what it is, how it works, use cases, limitations, and best practices. XCom in Apache Airflow: Cross-Communication Between Tasks 1. Overview In Apache Airflow, each task instance is typically isolated. Tasks cannot share variables or data directly. XCom (short for cross-communication ) is the mechanism that allows tasks to exchange small pieces of data. push = PythonOperator(task_id='push_task'