tooptoop4 commented on a change in pull request #6943: [AIRFLOW-4495] allow 
externally triggered dags to run for future exec…
URL: https://github.com/apache/airflow/pull/6943#discussion_r363018119
 
 

 ##########
 File path: airflow/jobs/scheduler_job.py
 ##########
 @@ -629,13 +629,21 @@ def _process_task_instances(self, dag, 
task_instances_list, session=None):
         active_dag_runs = []
         for run in dag_runs:
             self.log.info("Examining DAG run %s", run)
-            # don't consider runs that are executed in the future
+            # don't consider runs that are executed in the future unless
+            # specified by config
             if run.execution_date > timezone.utcnow():
-                self.log.error(
-                    "Execution date is in future: %s",
-                    run.execution_date
-                )
-                continue
+                if conf.getboolean(
 
 Review comment:
   @yuqian90 see https://github.com/apache/airflow/pull/7038

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to