jedcunningham commented on code in PR #46849:
URL: https://github.com/apache/airflow/pull/46849#discussion_r1971884647
##########
airflow/cli/commands/remote_commands/dag_command.py:
##########
@@ -404,7 +419,21 @@ def dag_list_import_errors(args) -> None:
@providers_configuration_loaded
def dag_report(args) -> None:
"""Display dagbag stats at the command line."""
- dagbag = DagBag(process_subdir(args.subdir))
+ manager = DagBundlesManager()
+
+ all_bundles = list(manager.get_all_dag_bundles())
+ if args.bundle_name:
+ validate_dag_bundle_arg(args.bundle_name)
+ bundles_to_reserialize = set(args.bundle_name)
+ else:
+ bundles_to_reserialize = {b.name for b in all_bundles}
+
+ for bundle in all_bundles:
+ if bundle.name not in bundles_to_reserialize:
+ continue
+ bundle.initialize()
+ dagbag = DagBag(bundle.path, include_examples=False)
Review Comment:
What happens in AF2? Seems fine to me though.
--
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]