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 2019/12/16 15:27:29 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #2460: [AIRFLOW-1424] make the next execution date of DAGs visible

kaxil commented on a change in pull request #2460: [AIRFLOW-1424] make the next execution date of DAGs visible
URL: https://github.com/apache/airflow/pull/2460#discussion_r358295812
 
 

 ##########
 File path: airflow/jobs.py
 ##########
 @@ -892,6 +891,11 @@ def create_dag_run(self, dag, session=None):
             if next_run_date and min_task_end_date and next_run_date > min_task_end_date:
                 return
 
+            # Don't really schedule the job, we are interested in its next run date
+            # as calculated by the scheduler
+            if dry_run is True:
+                return next_run_date
 
 Review comment:
   Yes 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services