shubham-pyc commented on code in PR #48659:
URL: https://github.com/apache/airflow/pull/48659#discussion_r2024305714


##########
airflow-core/src/airflow/dag_processing/manager.py:
##########
@@ -407,20 +407,35 @@ def _queue_requested_files_for_parsing(self) -> None:
 
     @provide_session
     def _get_priority_files(self, session: Session = NEW_SESSION) -> 
list[DagFileInfo]:
-        files: list[DagFileInfo] = []
+        files: set[DagFileInfo] = set()

Review Comment:
   I changed this from a list to a set to ensure uniqueness. There may be cases 
where a DagPriorityParsingRequest is triggered for both a specific file and a 
bundle, potentially causing duplicates. Using a set guarantees that each file 
appears only once.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to