potiuk commented on code in PR #40916:
URL: https://github.com/apache/airflow/pull/40916#discussion_r1686977560


##########
airflow/dag_processing/processor.py:
##########
@@ -837,13 +877,17 @@ def process_file(
         :return: number of dags found, count of import errors, last number of 
db queries
         """
         self.log.info("Processing file %s for tasks to queue", file_path)
+        try:
+            if InternalApiConfig.get_use_internal_api():
+                dagbag = DagFileProcessor._get_dagbag(file_path)
+            else:
+                with create_session() as session:

Review Comment:
   Yeah. I have to take a closer look at that one - I think I made wrong 
assumption here about where the queries were counted and I even commented it 
out - but I see now it's quite a bit differrent counting



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