@@ -37,7 +37,7 @@ complicated, a line by line explanation follows below.
37
37
# 'end_date': datetime(2016, 1, 1),
38
38
}
39
39
40
- dag = DAG(' tutorial' , default_args = default_args)
40
+ dag = DAG(' tutorial' , default_args = default_args, schedule_interval = timedelta( days = 1 ) )
41
41
42
42
# t1, t2 and t3 are examples of tasks created by instantiating operators
43
43
t1 = BashOperator(
@@ -147,7 +147,7 @@ define a ``schedule_interval`` of 1 day for the DAG.
147
147
.. code :: python
148
148
149
149
dag = DAG(
150
- ' tutorial' , default_args = default_args, schedule_interval = timedelta(1 ))
150
+ ' tutorial' , default_args = default_args, schedule_interval = timedelta(days = 1 ))
151
151
152
152
Tasks
153
153
-----
@@ -277,8 +277,8 @@ something like this:
277
277
.. code :: python
278
278
279
279
"""
280
- Code that goes along with the Airflow located at:
281
- http ://airflow.readthedocs.org/en/latest/ tutorial.html
280
+ Code that goes along with the Airflow tutorial located at:
281
+ https ://github.com/apache/incubator-airflow/blob/master/airflow/example_dags/ tutorial.py
282
282
"""
283
283
from airflow import DAG
284
284
from airflow.operators.bash_operator import BashOperator
@@ -301,7 +301,7 @@ something like this:
301
301
}
302
302
303
303
dag = DAG(
304
- ' tutorial' , default_args = default_args, schedule_interval = timedelta(1 ))
304
+ ' tutorial' , default_args = default_args, schedule_interval = timedelta(days = 1 ))
305
305
306
306
# t1, t2 and t3 are examples of tasks created by instantiating operators
307
307
t1 = BashOperator(
0 commit comments