Airflow Xcom — Exclusive
Problem: You push a result, but no downstream task is allowed to pull it.
Solution: Define the exclusive mapping at DAG level, and review with airflow dags show-xcom --exclusive-violations.
# Pushing XCom (implicitly via return)
def push_task(**context):
return "some_value"
Use these strategies depending on your requirement: airflow xcom exclusive
Airflow 2.0 introduced the ability to swap the XCom backend. This changes the game regarding the "Size Limit" constraint mentioned above. Problem: You push a result, but no downstream
Instead of storing data in the SQL database, you can configure Airflow to store XComs in: Review of Custom Backends:
Review of Custom Backends: