Last active
January 16, 2024 08:56
-
-
Save kapilgarg/f2224e722c4d2419104e1821f4030a90 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from airflow.decorators import dag | |
import pendulum | |
from airflow.operators.dummy import DummyOperator | |
@dag(dag_id='dag_tutorial_1', schedule=None, start_date=pendulum.datetime(2021, 1, 1, tz="UTC"),catchup=False,tags=["example"],) | |
def airflow_dag_tutorial(): | |
""" | |
This is a simple data pipeline example which demonstrates the use of | |
the TaskFlow API using three simple tasks for Extract, Transform, and Load. | |
Documentation that goes along with the Airflow TaskFlow API tutorial is | |
located | |
""" | |
start_task = DummyOperator(task_id='start_task') | |
end_task = DummyOperator(task_id='end_task') | |
start_task >> end_task | |
airflow_dag_tutorial() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment