shai-ikko commented on issue #40841: URL: https://github.com/apache/airflow/issues/40841#issuecomment-2256026832
Hi, I've looked a little more into documentation and code. Since I think the `start_date`/`execution_date` comparison is utterly wrong, I've tried just commenting it out. I got, basically, correct behavior. I found out that: - [`execution_date` is probably not what you think it is](https://airflow.apache.org/docs/apache-airflow/stable/faq.html#what-does-execution-date-mean) - `datetime.today()`, which I used for the DAG `start_date`, isn't what I thought either -- it is equivalent to `datetime.now()`, except it's naive, and since it's re-evaluated every time the DAG is parsed -- and it's parsed all the time -- my use of it in the DAG explains a lot of the weirdness. In fact, if I replace that `datetime.today()` with "today at midnight", with existing code, I already get correct behavior. (I still think that check is wrong, but the "start_date is mishandled" is all on me) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
