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 2022/01/23 19:53:33 UTC

[GitHub] [airflow] wanlce commented on a change in pull request #21011: Fix the incorrect scheduling time for the first run of dag

wanlce commented on a change in pull request #21011:
URL: https://github.com/apache/airflow/pull/21011#discussion_r790322868



##########
File path: airflow/timetables/interval.py
##########
@@ -232,7 +232,7 @@ def _skip_to_latest(self, earliest: Optional[DateTime]) -> DateTime:
             raise AssertionError("next schedule shouldn't be earlier")
         if earliest is None:
             return new_start
-        return max(new_start, earliest)
+        return max(new_start, self._get_next(earliest))

Review comment:
       should use anlign.  :cry: 
   




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