You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/10/21 19:27:49 UTC

[GitHub] [airflow] robinedwards commented on a change in pull request #19130: Fix queued dag runs changes catchup=False behaviour

robinedwards commented on a change in pull request #19130:
URL: https://github.com/apache/airflow/pull/19130#discussion_r733984728



##########
File path: airflow/timetables/interval.py
##########
@@ -81,9 +81,15 @@ def next_dagrun_info(
                 return None
             start = self._align(earliest)
         else:
-            # There's a previous run. Create a data interval starting from when
-            # the end of the previous interval.
-            start = last_automated_data_interval.end
+            # There's a previous run.
+            if earliest is not None:
+                # Catchup is False or DAG has new start date in the future.
+                # Make sure we get the latest start date
+                start = max(last_automated_data_interval.end, earliest)
+            else:
+                # Create a data interval starting from when the end of the previous interval.
+                start = last_automated_data_interval.end

Review comment:
       Of course will look into this tomorrow




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org