x42005e1f commented on issue #50185: URL: https://github.com/apache/airflow/issues/50185#issuecomment-2917903234
Perhaps I should clarify the thought. Instead of waiting in the synchronous function to finish reading the message in the asynchronous task, which obviously will never complete without switching back to the event loop, we can finish reading the message in the synchronous function. Once we finish reading that message, we will send that remainder to the asynchronous task on the next switch. And before that, the synchronous function will make the request it wants to make. Also, instead of adding a separate asynchronous lock, we can introduce separate `default_group_factory` for green (sync) and async APIs respectively (`=current_thread_ident` for the former, `=current_async_task_ident` for the latter). -- 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]
