phanikumv commented on code in PR #34665:
URL: https://github.com/apache/airflow/pull/34665#discussion_r1345074962


##########
airflow/dag_processing/manager.py:
##########
@@ -820,10 +821,12 @@ def clear_nonexistent_import_errors(file_paths: list[str] 
| None, session=NEW_SE
         :param file_paths: list of paths to DAG definition files
         :param session: session for ORM operations
         """
-        query = session.query(errors.ImportError)
         if file_paths:
-            query = query.filter(~errors.ImportError.filename.in_(file_paths))
-        query.delete(synchronize_session="fetch")
+            query = 
delete(errors.ImportError).where(~errors.ImportError.filename.in_(file_paths))
+        else:
+            query = delete(errors.ImportError)

Review Comment:
   done



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