ferruzzi commented on PR #68359:
URL: https://github.com/apache/airflow/pull/68359#issuecomment-5027308917

   > a plain schedule="@daily" or schedule=timedelta(...) resolves to 
CronTriggerTimetable / DeltaTriggerTimetable, whose data interval defaults to 
zero-width (interval=timedelta() → DataInterval(next_start, next_start)).
   
   Oh, nice catch, I didn't realize that.  Sneaky bug could have been a pain to 
troubleshoot, too.
   
   So the right solution is to use `timetable.next_dagrun_info()` to calculate 
when the next run would have been by giving it the previous interval's end, and 
seeing if that next run would have been before the `new_interval_start`, right?


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