You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/05/06 03:40:37 UTC

[GitHub] [airflow] uranusjr commented on a change in pull request #15302: Emit error on duplicated DAG ID

uranusjr commented on a change in pull request #15302:
URL: https://github.com/apache/airflow/pull/15302#discussion_r627056163



##########
File path: airflow/models/dagbag.py
##########
@@ -390,7 +406,17 @@ def _process_modules(self, filepath, mods, file_last_changed_on_disk):
     def bag_dag(self, dag, root_dag):
         """
         Adds the DAG into the bag, recurses into sub dags.
-        Throws AirflowDagCycleException if a cycle is detected in this dag or its subdags
+
+        :throws: AirflowDagCycleException if a cycle is detected in this dag or its subdags.
+        :throws: AirflowDagDuplicatedIdException if this dag or its subdags already exists in the bag.

Review comment:
       You're right, I don't know why I wrote this.




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