gyscos opened a new issue #16844:
URL: https://github.com/apache/airflow/issues/16844
**Add state filter to the dag runs list API endpoint**
One feature available in the "Browse / Dag Runs" page but not in the current
rest API is the ability to filter runs of a specific state(s).
Example use-case: this would let a client efficiently fetch the number of
"queued" and "running" runs, or look at recent failed runs.
Ideally, the current `/dags/{dag_id}/dagRuns` and `/dags/~/dagRuns/list`
endpoints would each get updated to support an additional parameter called
`state`. This parameter could be given multiple times and act as a logical "OR"
(just like `dag_ids`).
The web UI page offers more fancy filters like "includes", but for something
with a finite number of values like `state`, it doesn't feel necessary for the
API.
--
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]