If the cron expression for my Airflow DAG is: 30 0 * * *
, then why do my DAG runs show an execution date of the previous day?
I am using Airflow 1.10.10. In the DAG, I have PostgresOperators running SQL on a database. The SQL contains filters on a date column, and I'm filtering using the {{ ds_nodash }}
macro. But, the ds_nodash
macro resolves to yesterday!
Here's the webserver view of the dag run dates:
- (I'm assuming that the date in the
Run Id
(scheduled__2021-02-21T00:30:00+00:00
), is the DAG run's execution date based on the behavior I describe above.)
My expectation is that the execution date date should be the same or very close to the start date based on the cron interval expression. Is my assumption incorrect? If so, why?