gopidesupavan commented on PR #51699:
URL: https://github.com/apache/airflow/pull/51699#issuecomment-2992828815

   > Ahhh I know why it helps then.
   > 
   > The main thread/outer is the async event loop. It calls in to 
`get_connection` via `sync_to_async` so it is running in a thread. The new 
change in this PR now means that TriggerCommsDecoder calls 
`async_to_sync(self.asend)` -- which then "bubbles up" to the main thread, and 
it is now only the async code that locks things, so the sync thread is never 
trying to achieve the lock directly.
   
   Yes exactly..


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