Airflow Xcom: Exclusive
When a task returns a value, the Custom Backend intercepts it, uploads the payload to a secure bucket, and stores only a small URI reference string in the Airflow database.
Even with a custom backend, you'll need to scale other Airflow components (workers, schedulers) to handle large data volumes effectively. airflow xcom exclusive
Schedule a to keep the core XCom table lean. When a task returns a value, the Custom
AIRFLOW__COMMON_IO__XCOM_OBJECTSTORAGE_THRESHOLD=0 When a task returns a value
trigger = TriggerDagRunOperator( task_id='trigger_other', trigger_dag_id='consumer_dag', conf="xcom_value": " ti.xcom_pull(task_ids='producer_task') " )
Looking to share data between your Apache Airflow tasks? are the way to go. They allow tasks to exchange small amounts of data, like metadata or configuration parameters, which is essential because Airflow tasks usually run in isolation. The Basics of XComs