dstandish commented on code in PR #46571:
URL: https://github.com/apache/airflow/pull/46571#discussion_r1947052652


##########
airflow/cli/commands/remote_commands/dag_command.py:
##########
@@ -543,21 +544,20 @@ def dag_test(args, dag: DAG | None = None, session: 
Session = NEW_SESSION) -> No
 @provide_session
 def dag_reserialize(args, session: Session = NEW_SESSION) -> None:
     """Serialize a DAG instance."""
-    from airflow.dag_processing.bundles.manager import DagBundlesManager
-
     manager = DagBundlesManager()
     manager.sync_bundles_to_db(session=session)
     session.commit()
+
+    bundles = list(manager.get_all_dag_bundles())

Review Comment:
   ```suggestion
       all_bundles = list(manager.get_all_dag_bundles())
   ```



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