jason810496 commented on PR #76416:
URL: https://github.com/apache/airflow/pull/76416#issuecomment-6625736262

   > An easier fix that works the same way in all three places is to keep 
`SessionDep` and move the sync DB work off the loop? Like:
   
   The API server must not hide sync DB work behind an explicit threadpool 
offload IMO.
   
   Offloading keeps the event loop free, but each call needs a threadpool 
worker that the sync endpoints also need, so under load it waits behind them.
   
   Additionally, we already used the async DB engine for heartbeat route in 
3.4.0 as well, so it should be fine.
   


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