Skip to content

Commit

Permalink
re-add testdag
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettcher committed Jan 25, 2023
1 parent 388adf9 commit 7990022
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions dags/testdag.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from datetime import timedelta

from airflow import DAG
from airflow.operators.bash import BashOperator
from airflow.utils.dates import days_ago

def_args = {
'owner': 'airflow',
'depends_on_past': False,
'email_on_failure': False,
'email_on_retry': False,
'retries': 1,
'retry_delay': timedelta(minutes=5)

}

with DAG('testdag', default_args=def_args, description='simple testing dag', schedule_interval=timedelta(days=1), start_date=days_ago(2)) as dag:
t1 = BashOperator(task_id='print_date', bash_command='date')
t2 = BashOperator(task_id='do_noting', bash_command='sleep 5')

t1 >> t2

0 comments on commit 7990022

Please sign in to comment.