From 90b40fb935eb73c33b1f9e571e042c0ad4e27784 Mon Sep 17 00:00:00 2001 From: Christian Boettcher <c.boettcher@fz-juelich.de> Date: Wed, 16 Mar 2022 09:38:00 +0100 Subject: [PATCH] check if dags from main are pushed to instance --- dags/another-testdag.py | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 dags/another-testdag.py diff --git a/dags/another-testdag.py b/dags/another-testdag.py new file mode 100644 index 0000000..c00489f --- /dev/null +++ b/dags/another-testdag.py @@ -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('another-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 -- GitLab