Airflow Summit 2020
AIP-31: Airflow functional DAG
July 10, 2020
AIP-31: Airflow functional DAG Airflow Summit 2020 1 Introduction - - PowerPoint PPT Presentation
July 10, 2020 AIP-31: Airflow functional DAG Airflow Summit 2020 1 Introduction 2 Why functional DAG? 3 Explicit XCom: XComArg 4 @task decorator 5 Future work Intro Gerard Casas Saez Software Engineer ML Platform - Cortex @
Airflow Summit 2020
July 10, 2020
Software Engineer ML Platform - Cortex @ Twitter Follow me @casassaez
Parse JSON Extract origin parameter Format email subject and content Data out: Email subject + content strings Send email to myself to get current IP
Example ETL pipeline
GET request to HttpBin /get endpoint Data out: HttpBin JSON string
cluster, GCS vs HDFS…)
Passing data between operators
Example DAG
Example DAG
AIP-31: Motivation
nsorflow Extended pipelines
Prior art/Inspiration
XComArg: Reference to future XCom value
Example DAG
Example DAG
Python function to Airflow operator
@task decorator
Example DAG
Example DAG
Future work + Contributions
Custom XCom backend
@dag decorator
Kudos to..
+ Airflow reviewers and committers (Kaxil, Ash, Jarek, Dan…)