AIP-84 | Add last run details to dags list
Add the latest dag run to the returned dag in the public get /dags endpoint in fastapi.
dag.latest_dagrun should be a serialized DagRun or None
Can you please assign it to me?
Thanks @ArshiaZr Instead of listing a few separate columns of the dag run. We should probably just return dag.last_dagrun as a dict of the DagRun model.
@ArshiaZr this is the issue to add last_dagrun to the fast api dags list. So please feel free to work on it!
Hello @ArshiaZr,
Are you still working on it? Do you need help to get started?
Closing. We are now using the private endpoint for recent_dag_runs which has more information.
The PR was stale and closed. It's probably good to reopen this issue and have the latest dagrun as part of the dag response which is more efficient and useful in pages like dag detail instead of fetching last 14 dagruns and getting the last item.
Edit : Please ignore my comment. It seems the endpoint has dag_runs_limit to limit the dagruns to latest and also achieve my use case. Thanks.