Skip to content

Instantly share code, notes, and snippets.

View semihsezer's full-sized avatar

Semih Sezer semihsezer

View GitHub Profile
@semihsezer
semihsezer / nested_dag.py
Last active February 3, 2022 01:06
Creating Dynamic Nested Subdags in Airflow (subdags within subdags)
from airflow import DAG
from airflow.operators.python_operator import PythonOperator
from airflow.operators.subdag_operator import SubDagOperator
from datetime import datetime, timedelta
default_args = {
'owner': 'Airflow',
'start_date': datetime(2020, 3, 10)
}