Skip to content

Commit

Permalink
Hello world DAG
Browse files Browse the repository at this point in the history
  • Loading branch information
svallero committed Jan 11, 2024
1 parent 774cea1 commit b4a4d32
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions hello_world_dag.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from airflow import DAG
from airflow.operators.python import PythonOperator
from datetime import datetime

def helloWorld():
print(‘Hello World’)

with DAG(dag_id="hello_world_dag",
start_date=datetime(2021,1,1),
schedule_interval="@hourly",
catchup=False) as dag:

task1 = PythonOperator(
task_id="hello_world",
python_callable=helloWorld)

task1



0 comments on commit b4a4d32

Please sign in to comment.