Avenger
Avenger

Reputation: 877

Schedule interval in airflow

I am trying to figure out how the dag interval works.

* * * * *
M H D M Y

And time is in UTC.

Exmaple:

29 21 * * *

It would mean to run every day at 21:29.

I have seen an example where the year was 4. What would this mean?

29 21 * * 4

Upvotes: 1

Views: 466

Answers (1)

Elad Kalif
Elad Kalif

Reputation: 16129

29 21 * * 4 means at 21:29 on Thursday. See crontab guru

So following times are:

at 2020-12-17 21:29:00
then at 2020-12-24 21:29:00
then at 2020-12-31 21:29:00
then at 2021-01-07 21:29:00
then at 2021-01-14 21:29:00

However Airflow is not crontab. The running of task is based on start_date and interval. See the following answer

Upvotes: 3

Related Questions