The first Dag with 0 1 * * *
ran without any problem. The end DAG 0 10 1 * *
Did not run.
When I do:
import datetime
print datetime.datetime.now()
I get:
2018-07-01 12:14:15.632812
So I don't understand why this DAG hasn't been scheduled. I understand that it's not mandatory to run exactly at 10:00 but the stat should be Running
.
According to the "Latest Run" of the first task with is 2018-06-30 01:00
I suspect that I don't actually understand Airflow clock. From my point of view the last run was on 2018-07-01 01:00
Because it ran today morning not yesterday.
Edit: I saw this paragraph at the documntation:
"Note that if you run a DAG on a schedule_interval of one day, the run stamped 2016-01-01 will be trigger soon after 2016-01-01T23:59. In other words, the job instance is started once the period it covers has ended."
So I'm wondering.. I should schedule everything to one day before the actual date I want?
So If I actually want something to run at 0 10 1 * *
I should schedule it to 0 10 30 * *
? In other words if I want something to run on the 1st of each month at 10:00 I should schedule it to the last day of each month at 10:00 ?
Where is the logic in that? This is very hard to understand and follow.
It gets worst, According to this There is no way to tell the scheduler this input. What am I to do?!