mhenc commented on code in PR #29188:
URL: https://github.com/apache/airflow/pull/29188#discussion_r1093146837


##########
airflow/dag_processing/processor.py:
##########
@@ -837,3 +832,26 @@ def process_file(
             self.log.exception("Error logging DAG warnings.")
 
         return len(dagbag.dags), len(dagbag.import_errors)
+
+    @staticmethod
+    @internal_api_call
+    @provide_session
+    def save_dag_to_db(
+        dags, pickle_dags, dagbag_import_error_traceback_depth, dag_directory, 
session=NEW_SESSION

Review Comment:
   dags are only used in line 847 below:
   ```
           dag_ids = [dag.id for dag in dags]
   ```
   so we can just pass `dag_ids` there, to avoid problem with DagBag 
serialization.



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