x42005e1f commented on issue #63913:
URL: https://github.com/apache/airflow/issues/63913#issuecomment-4380751908

   > the same thing that SQLAlchemy uses
   
   Not exactly. SQLAlchemy uses greenlets as a way to "pass through" async 
calls through a sync layer (a classic use case), so the scope of responsibility 
is limited to SQLAlchemy itself. Besides, I heard that the dependency on 
greentlet in SQLAlchemy is not that clear (see 
[1](https://hachyderm.io/@zzzeek/115408550940331949), 
[2](https://github.com/sqlalchemy/sqlalchemy/issues/12972#issuecomment-3567958497)).
   
   The difference in your case is that greenlets are used as a way to yield to 
the event loop at any point in the async code. This violates the expectations 
of cooperative multitasking, since context switching can now occur not only at 
`await` points, so any user code can be affected.


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