Here are some best practices for using XComs:
XComs (short for "cross-communications") are Airflow’s built-in mechanism for tasks to exchange small pieces of data. One task pushes a value (key + value + task_id + dag_id), and another task pulls it. airflow xcoms