pierrejeambrun commented on PR #43506:
URL: https://github.com/apache/airflow/pull/43506#issuecomment-2482730997

   > @pierrejeambrun , as of now get dag runs does not raise 404 not found if 
dag id is invalid. 
[Link](https://airflow.apache.org/docs/apache-airflow/stable/stable-rest-api-ref.html#operation/get_dag_runs).
   
   > Should we update it?
   
   I think we should `get_tasks` ?:
   ```python
       """Get tasks for DAG."""
       dag: DAG = request.app.state.dag_bag.get_dag(dag_id)
       if not dag:
           raise HTTPException(status.HTTP_404_NOT_FOUND, f"Dag with id 
{dag_id} was not found")
   ```
   


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