Subham-KRLX commented on code in PR #64945:
URL: https://github.com/apache/airflow/pull/64945#discussion_r3105399238
##########
task-sdk/src/airflow/sdk/definitions/dag.py:
##########
@@ -1298,13 +1295,12 @@ def test(
for bundle in manager.get_all_dag_bundles():
if not bundle.is_initialized:
bundle.initialize()
- with _airflow_parsing_context_manager(dag_id=self.dag_id):
- dagbag = BundleDagBag(
- dag_folder=bundle.path,
- bundle_path=bundle.path,
- bundle_name=bundle.name,
- )
- sync_bag_to_db(dagbag, bundle.name, bundle.version)
+ dagbag = BundleDagBag(
+ dag_folder=bundle.path,
+ bundle_path=bundle.path,
+ bundle_name=bundle.name,
+ )
+ sync_bag_to_db(dagbag, bundle.name, bundle.version)
version = DagVersion.get_version(self.dag_id)
if version:
break
Review Comment:
I have addressed this by removing the early break and parsing restriction in
dag.test() and I have added a multi-bundle regression test to verify.
--
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]