Description
Add an option for airflow dags list-import-errors command like -q which suppresses all logging, in order to print just the intended output.
Use case/motivation
I want to make a CI test which confirms that there are no dag import errors, and the easiest way that it seems to do that is to parse the output of airflow dags list-import-errors, something like
airflow dags list-import-errors -o json | jq -e 'select(type=="array" and length == 0)'
However, if there is any logging that occurs in list-import-errors it breaks the test, and it isn't always possible to remove the logging statement (currently this is messing me up).
Related issues
No response
Are you willing to submit a PR?
Code of Conduct
Description
Add an option for
airflow dags list-import-errorscommand like-qwhich suppresses all logging, in order to print just the intended output.Use case/motivation
I want to make a CI test which confirms that there are no dag import errors, and the easiest way that it seems to do that is to parse the output of
airflow dags list-import-errors, something likeHowever, if there is any logging that occurs in
list-import-errorsit breaks the test, and it isn't always possible to remove the logging statement (currently this is messing me up).Related issues
No response
Are you willing to submit a PR?
Code of Conduct