vincbeck commented on code in PR #75396:
URL: https://github.com/apache/airflow/pull/75396#discussion_r4633909874


##########
airflow-core/src/airflow/api_fastapi/execution_api/routes/xcoms.py:
##########
@@ -26,12 +26,14 @@
 import attrs
 from cadwyn import current_dependency_solver
 from fastapi import APIRouter, Body, Depends, HTTPException, Path, Query, 
Request, Response, status
+from fastapi.responses import JSONResponse
 from pydantic import JsonValue
 from sqlalchemy import select
 from sqlalchemy.sql.selectable import Select
+from starlette.concurrency import run_in_threadpool

Review Comment:
   Now that #76424 is merged, this will fail `TestNoThreadpoolOffload` once 
rebased: all 6 routes here call `run_in_threadpool`, and main has none in this 
file. The test asks for an async DB call instead, because under load these 
calls wait behind the sync endpoints for a worker. Reads wait twice here, and 
hold their async connection while they wait for `_render_json`'s worker. Fix: 
rebase on main, then either make the producer lookup async or explain why these 
6 sites should go in `known_api_server_threadpool_offloads.txt`.



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