Skip to content

Instantly share code, notes, and snippets.

@kapilgarg
Last active January 16, 2024 08:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kapilgarg/f2224e722c4d2419104e1821f4030a90 to your computer and use it in GitHub Desktop.
Save kapilgarg/f2224e722c4d2419104e1821f4030a90 to your computer and use it in GitHub Desktop.
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