henry3260 commented on code in PR #65661:
URL: https://github.com/apache/airflow/pull/65661#discussion_r3139146772


##########
airflow-core/src/airflow/api_fastapi/core_api/routes/public/extra_links.py:
##########


Review Comment:
   could we move the `TaskInstance (TI)` database query before we call` 
dag.get_task(task_id)`?
   This way, if a user queries a non-existent task, we can fail fast and return 
a 404 immediately, saving the system from doing unnecessary and expensive DAG 
parsing. What do you think?



-- 
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]

Reply via email to