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.
@dondaum - are you still working on this? Please let us know if there is anything we can help with. It would be best to have this shipped with v2.10 as the community's focus will be on Airflow 3 afterwards. cc: @ferruzzi
Activity
potiuk commentedon Jul 3, 2024
(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
potiuk commentedon Jul 3, 2024
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.
reganbaum commentedon Jul 4, 2024
Thanks, Jarek. I moved the
dagrun_failedissue (2) over to its own issue for easier tracking: #40600[-]Add support for `dag_stats` and `dagrun_failed` in REST API[/-][+]Add support for `dag_stats` in REST API[/+]dondaum commentedon Jul 4, 2024
Happy to take this over. Would be a good chance to get to know the Airflow REST API.
potiuk commentedon Jul 4, 2024
Assigned you
shubham22 commentedon Jul 24, 2024
@dondaum - are you still working on this? Please let us know if there is anything we can help with. It would be best to have this shipped with v2.10 as the community's focus will be on Airflow 3 afterwards. cc: @ferruzzi
dondaum commentedon Jul 24, 2024
Yeah I will finish it this week. Sorry I had some busy weeks.