ambika-garg commented on code in PR #45779:
URL: https://github.com/apache/airflow/pull/45779#discussion_r1943579638


##########
airflow/cli/commands/remote_commands/dag_command.py:
##########
@@ -328,7 +332,10 @@ def dag_list_dags(args, session=NEW_SESSION) -> None:
             f"List of valid columns: {list(dag_schema.fields.keys())}",
             file=sys.stderr,
         )
-    dagbag = DagBag(process_subdir(args.subdir))
+
+    dagbag = DagBag(read_dags_from_db=True)
+    dagbag.collect_dags_from_db()
+
     if dagbag.import_errors:

Review Comment:
   Yea, test for this is failing.



-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to