Skip to content

Commit b63fc4a

Browse files
TrevorEdwardswayne.morris
authored and
wayne.morris
committed
[AIRFLOW-1441] Fix inconsistent tutorial code (apache#2466)
1 parent 8abce98 commit b63fc4a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/tutorial.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ complicated, a line by line explanation follows below.
3737
# 'end_date': datetime(2016, 1, 1),
3838
}
3939
40-
dag = DAG('tutorial', default_args=default_args)
40+
dag = DAG('tutorial', default_args=default_args, schedule_interval=timedelta(days=1))
4141
4242
# t1, t2 and t3 are examples of tasks created by instantiating operators
4343
t1 = BashOperator(
@@ -147,7 +147,7 @@ define a ``schedule_interval`` of 1 day for the DAG.
147147
.. code:: python
148148
149149
dag = DAG(
150-
'tutorial', default_args=default_args, schedule_interval=timedelta(1))
150+
'tutorial', default_args=default_args, schedule_interval=timedelta(days=1))
151151
152152
Tasks
153153
-----
@@ -277,8 +277,8 @@ something like this:
277277
.. code:: python
278278
279279
"""
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
282282
"""
283283
from airflow import DAG
284284
from airflow.operators.bash_operator import BashOperator
@@ -301,7 +301,7 @@ something like this:
301301
}
302302
303303
dag = DAG(
304-
'tutorial', default_args=default_args, schedule_interval=timedelta(1))
304+
'tutorial', default_args=default_args, schedule_interval=timedelta(days=1))
305305
306306
# t1, t2 and t3 are examples of tasks created by instantiating operators
307307
t1 = BashOperator(

0 commit comments

Comments
 (0)