Xcoms — Airflow
Tip: For passing large data, use external storage like S3, GCS, or an SQL table, and pass only the file path/reference through XCom. How to Use XComs: A Practical Guide There are two primary ways to work with XComs in Airflow. 1. The Automatic Way (Return Values)
# Task 2: pull data from XCom task_2 = BashOperator( task_id='task_2', bash_command='echo task_instance.xcom_pull("greeting") ', dag=dag, ) airflow xcoms