From 6c30fc5bff8aceb5908522e7fb484f6e1efb92df Mon Sep 17 00:00:00 2001 From: Omkar P <45419097+omkar-foss@users.noreply.github.com> Date: Sat, 9 Nov 2024 04:30:07 +0530 Subject: [PATCH] Remove `async` keyword for Get Connection (#43836) --- airflow/api_fastapi/execution_api/routes/connections.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airflow/api_fastapi/execution_api/routes/connections.py b/airflow/api_fastapi/execution_api/routes/connections.py index 2f2c29daa8bab..4e0c6eb007c69 100644 --- a/airflow/api_fastapi/execution_api/routes/connections.py +++ b/airflow/api_fastapi/execution_api/routes/connections.py @@ -49,7 +49,7 @@ def get_task_token() -> datamodels.TIToken: status.HTTP_403_FORBIDDEN: {"description": "Task does not have access to the connection"}, }, ) -async def get_connection( +def get_connection( connection_id: str, token: Annotated[datamodels.TIToken, Depends(get_task_token)], ) -> datamodels.ConnectionResponse: