yuqian90 commented on a change in pull request #7038: [AIRFLOW-4495] allow 
externally triggered dags to run for future exec dates
URL: https://github.com/apache/airflow/pull/7038#discussion_r363566046
 
 

 ##########
 File path: airflow/ti_deps/deps/runnable_exec_date_dep.py
 ##########
 @@ -30,11 +31,17 @@ class RunnableExecDateDep(BaseTIDep):
     def _get_dep_statuses(self, ti, session, dep_context):
         cur_date = timezone.utcnow()
 
+        # don't consider runs that are executed in the future unless
+        # specified by config and schedule_interval is None
         if ti.execution_date > cur_date:
-            yield self._failing_status(
-                reason="Execution date {0} is in the future (the current "
-                       "date is {1}).".format(ti.execution_date.isoformat(),
-                                              cur_date.isoformat()))
+            if ti.task.dag.schedule_interval or not conf.getboolean(
 
 Review comment:
   This can be:
   ```python
   if not ti.task.dag.allow_future_exec_dates:
      ...
   ```

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to