Saadmadni84 commented on PR #60105:
URL: https://github.com/apache/airflow/pull/60105#issuecomment-3730030710
> > Hi @bbovenzi, I’ve addressed the requested changes and fixed the lint
issue in TaskInstanceSummary. CI has been rerun. Thanks for taking another look.
>
> Again, we need a fastapi update to support this. Fetching 1000 task
instances for every dag on the dags list page will affect the performance too
much to be acceptable for users.
>
> You can look at our dags with runs endpoint in `/ui`. In this case we
don't even want the entire task instance object. Just stats. So the response
can look like:
>
> ```
> {
> ...dag,
> latest_dag_runs: [],
> latest_run_stats: {
> success: 5,
> failed: 1,
> queued: 1,
> upstream_failed: 2
> }
> }
> ```
Thanks for the clarification — that makes sense.
I’ll explore adding a FastAPI endpoint that returns aggregated task instance
stats (similar to the DAG runs endpoint under /ui) and update the UI to consume
only those summaries instead of fetching full task instance objects.
--
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]