From a3a495077f34183d706c0edbe56d6213766bf5f6 Mon Sep 17 00:00:00 2001 From: Valay Dave Date: Fri, 24 Jun 2022 02:05:57 +0000 Subject: [PATCH] added comment on need for `start_date` --- metaflow/plugins/airflow/airflow.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/metaflow/plugins/airflow/airflow.py b/metaflow/plugins/airflow/airflow.py index 4b6b070cdd..ef1eb1b5a5 100644 --- a/metaflow/plugins/airflow/airflow.py +++ b/metaflow/plugins/airflow/airflow.py @@ -621,6 +621,9 @@ def _visit(node, workflow, exit_node=None): default_args=self._create_defaults(), description=self.description, schedule_interval=self.schedule, + # `start_date` is a mandatory argument even though the documentation lists it as optional value + # Based on the code, Airflow will throw a `AirflowException` when `start_date` is not provided + # to a DAG : https://github.com/apache/airflow/blob/0527a0b6ce506434a23bc2a6f5ddb11f492fc614/airflow/models/dag.py#L2170 start_date=datetime.now(), tags=self.tags, file_path=self._file_path,