diff --git a/airflow/api_fastapi/execution_api/routes/connections.py b/airflow/api_fastapi/execution_api/routes/connections.py index 2f2c29daa8ba..4e0c6eb007c6 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: