Airflow Xcom Exclusive

: Only pass metadata (IDs, dates, paths) via XCom. Use them as "pointers" to larger data stored elsewhere.

Modern Airflow (2.0+) makes XComs nearly invisible. By using the @task decorator, Airflow handles the "push" and "pull" exclusively between the functions you connect. airflow xcom exclusive

XComs are strictly tied to specific task instances and execution dates. : Only pass metadata (IDs, dates, paths) via XCom

. Excessive use or large objects (like heavy Pandas DataFrames) can significantly degrade database performance. Apache Airflow The "Exclusive" Advanced Setup: Custom Backends By using the @task decorator, Airflow handles the

Pass exclusive keys to triggered DAGs:

You can explicitly push data using the xcom_push method inside the function. This is useful if you need to push multiple values.

@task def multi_pull(**context): count = context['ti'].xcom_pull(key='count', task_ids='multi_push') status = context['ti'].xcom_pull(key='status', task_ids='multi_push') main = context['ti'].xcom_pull(task_ids='multi_push') # default key