tooptoop4 commented on a change in pull request #5458: [AIRFLOW-4495] allow
externally triggered dags to run for future 'Exe…
URL: https://github.com/apache/airflow/pull/5458#discussion_r296469834
##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -684,13 +684,6 @@ 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
- if run.execution_date > timezone.utcnow():
- self.log.error(
- "Execution date is in future: %s",
- run.execution_date
- )
- continue
Review comment:
my dag will do ETL on a file where the filename contains the executiondate.
I receive both present year data and 'forecast' data where filename is next
year (so i do 2 externally triggered dagruns, 1 per date of filename). i want
to run the dag for the forecast executiondate immediately
----------------------------------------------------------------
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