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 2022/11/09 06:58:07 UTC

[GitHub] [airflow] uranusjr commented on a diff in pull request #27060: 27010 : Add new files to parsing queue on every loop of dag processsing

uranusjr commented on code in PR #27060:
URL: https://github.com/apache/airflow/pull/27060#discussion_r1017499028


##########
airflow/dag_processing/manager.py:
##########
@@ -932,7 +937,7 @@ def set_file_paths(self, new_file_paths):
         :return: None
         """
         self._file_paths = new_file_paths
-        self._file_path_queue = [x for x in self._file_path_queue if x in new_file_paths]
+        self._file_path_queue = collections.deque([x for x in self._file_path_queue if x in new_file_paths])

Review Comment:
   ```suggestion
           self._file_path_queue = collections.deque(x for x in self._file_path_queue if x in new_file_paths)
   ```



-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org