kaxil commented on PR #57321: URL: https://github.com/apache/airflow/pull/57321#issuecomment-3458978657
> IMO, it's not a good idea to fall back to local when the DB is empty. The reason is that many times users forget to set up the right env variables, and that would point to an empty DB and that would fetch DAGs out from local, which would be confusing for them. @msumit But this was the behaviour in Airflow 2.x as well -- i..e it completely ignored DB. I think the `airflow dags` and `airflow task` subcommands are only used during development. We can also completely ignore DB if you'd like. wdyt? https://github.com/apache/airflow/blob/2.11.0/airflow/cli/commands/dag_command.py#L495-L509 https://github.com/apache/airflow/blob/2.11.0/airflow/cli/commands/dag_command.py#L431-L456 -- 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]
