henry3260 commented on code in PR #69267:
URL: https://github.com/apache/airflow/pull/69267#discussion_r3525370481
##########
airflow-core/src/airflow/api_fastapi/execution_api/app.py:
##########
@@ -287,6 +287,7 @@ def _inject_trace_context_dep(routes, mode: str) -> None:
def create_task_execution_api_app(lifespan: svcs.fastapi.lifespan = lifespan)
-> FastAPI:
"""Create FastAPI app for task execution API."""
+ from airflow.api_fastapi.core_api.app import init_error_handlers
Review Comment:
Since` init_error_handlers()` only registers `ERROR_HANDLERS `from`
airflow.api_fastapi.common.exceptions`, it probably belongs next to those
common handlers rather than in `core_api.app`
So let's move `init_error_handlers` in common/exceptions.py
--
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]