potiuk edited a comment on issue #10824:
URL: https://github.com/apache/airflow/issues/10824#issuecomment-1050117293


   > 'start_date': airflow.utils.dates.days_ago(1),
   
   Don't use "days_ago" -> this is confusing *and you just experienced this 
very confusion*. We are actually deprecating days_ago and already removed it 
from all examples. Used fixed date for it (6/12/2021) - see our examples.
   
   The way you specified it "days_ago(1)" is yesterday. EVERY SINGLE DAY IT IS 
`YESTERDAY`. 
   This means that start_date literally changes every single day.
   
   When you want a dag that should start running 6th of December - make it so 
explicitly - look at our fresh examples where date is fixed - and set it to 
6/12/2021 explicitly. See examples how to it for example here: 
https://airflow.apache.org/docs/apache-airflow/stable/best-practices.html?highlight=start_date
   
   
   
   


-- 
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]


Reply via email to