KushagraB424 commented on PR #69393:
URL: https://github.com/apache/airflow/pull/69393#issuecomment-4916334095

   Thanks for the detailed review and confirming the root cause!
   
   I've just pushed a commit adding the regression test as you suggested. I 
mocked the Session.scalars call to force the DagRun lookup to return None, 
since the foreign key constraint makes it tricky to trigger naturally. The test 
verifies that the endpoint correctly returns a 404 with the expected not_found 
payload.
   
   Let me know if everything looks good or if there's anything else!


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