Introduction to Apache Airflow in Python
Mike Metzger
Data Engineer


@dag(dag_id='Example_XCom') def example_xcom():@task def get_data(): return data@task(multiple_outputs=True) def clean_data(sourcedata): return clean(sourcedata) # Example, not implementedclean_data(get_data()) example_xcom()
clean_data(get_data())
get_data() >> clean_data() result = clean_data(get_data())
result >> alert_when_complete()

Introduction to Apache Airflow in Python