r39132 closed pull request #2203: [AIRFLOW-1013] Skip manage_sla check for @once DAGs URL: https://github.com/apache/incubator-airflow/pull/2203
This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/airflow/jobs.py b/airflow/jobs.py index 006a180ef5..b21c81daa6 100644 --- a/airflow/jobs.py +++ b/airflow/jobs.py @@ -592,6 +592,10 @@ def manage_slas(self, dag, session=None): dttm = ti.execution_date if task.sla: dttm = dag.following_schedule(dttm) + # Skip tasks for @once dags + if not dttm and dag.schedule_interval == '@once': + self.logger.warn(' --------------> SLAs not supported in @once DAGs') + continue; while dttm < datetime.now(): following_schedule = dag.following_schedule(dttm) if following_schedule + task.sla < datetime.now(): ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on 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