Skip to content

Commit

Permalink
fix schedule_interval cron expression
Browse files Browse the repository at this point in the history
The cron expression currently used to specify the `schedule_interval` will lead to a run at every hour (not just hour 0). See [crontab.guru's description](https://crontab.guru/#0_*_*_*_*) for details.
For a daily run, the correct expression is `0 0 * * *`
  • Loading branch information
analyticalmonk authored Apr 10, 2018
1 parent 4ca25cb commit e675d04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ with DAG('airflow_tutorial_v01',
) as dag:
```

With `schedule_interval='0 * * * *'` we've specified a run at every hour 0; the DAG will run each day at 00:00.
With `schedule_interval='0 0 * * *'` we've specified a run at every hour 0; the DAG will run each day at 00:00.
See [crontab.guru](https://crontab.guru/#0_*_*_*_*) for help deciphering cron schedule expressions.
Alternatively, you can use strings like `'@daily'` and `'@hourly'`.

Expand Down

0 comments on commit e675d04

Please sign in to comment.