Xcom Example !!link!! — Airflow
Go to Task Instance → XCom tab → See key-value pairs.
The answer:
Use return as a shortcut – return value auto-pushes to return_value key. airflow xcom example
with DAG('xcom_example', start_date=datetime(2024, 1, 1), schedule_interval=None) as dag: Go to Task Instance → XCom tab → See key-value pairs
def auto_push(): return "auto_xcom" # automatically in XCom airflow xcom example