You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, there is no REST API available to get the stats of a DAG (# success/failed/running/queued runs) via API. However, the UI uses an endpoint dag_stats to display this information. The goal is to have a REST API endpoint available that gets the DAG stats at /api/v1/dag_stats.
I would like to programmatically (1) get the stats for all my DAGs and (2) programmatically stop a running workflow, which actually stops the execution (not just changes the state in the database).
(1) - sure if someone implements it
(2) - impossible until we change architecture (possibly might be doable in Airlfow 3 - I heartily invite you to subscribe to devlist discussions on that and take part in those discussions and advocate and possibly offer contributions to make it happen
Marked it for (1) as "good first issue" and if someone would like to implement such endpoint. Also @reganbaum you are welcome to try it if you want to have it faster rather than wait for someone to pick it up and implement.
Description
dag_stats
to display this information. The goal is to have a REST API endpoint available that gets the DAG stats at/api/v1/dag_stats
.dagrun_failed
in REST API #40600Use case/motivation
I would like to programmatically (1) get the stats for all my DAGs and (2) programmatically stop a running workflow, which actually stops the execution (not just changes the state in the database).
Related issues
#40600
Are you willing to submit a PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: