Skip to content
Snippets Groups Projects
Commit 66dd6a4c authored by Jedrzej Rybicki's avatar Jedrzej Rybicki
Browse files

testdag for simple test in ci

parent 27452119
No related branches found
No related tags found
No related merge requests found
Pipeline #78612 failed
......@@ -23,6 +23,6 @@ test:
- cp dags/* /opt/airflow/dags/
- airflow dags list
- airflow connections list
- airflow dags test firsto 2021-08-18
- airflow dags test testdag 2021-08-18
- nosetests
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('firsto', default_args=def_args, description='first 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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment