CLI Command to List All Failed/Running DAGs without specificing DAG IDs
- Dominant language
- Python
- Stars
- 46.9k
- Forks
- 17.8k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 483
Description
### Description
Currently, retrieving a list of all failed DAG runs across all DAGs requires scripting and iterating through each DAG ID using `airflow list_dag_runs`[1]. This process is cumbersome and inefficient for users who need a quick overview of failed DAGs. In airflow UI we do have an filter to list down all the Failed/Running DAGs

[1] i.e airflow list_dag_runs --state failed
### Use case/motivation
* Quickly identifying failed DAGs for operational monitoring and troubleshooting.
* Simplifying the process for users who are not comfortable with scripting.
### Related issues
_No response_
### Are you willing to submit a PR?
- [x] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
Contributor guide
Research direction
Start with the existing `airflow list_dag_runs --state failed ` command and compare its behavior with the Airflow UI filter for failed and running DAGs. Define the command behavior when no DAG ID is supplied, including supported states and the output needed to list matching DAG runs across DAGs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100