Taragolis opened a new issue, #38672:
URL: https://github.com/apache/airflow/issues/38672

   ### Body
   
   After last refactoring (https://github.com/apache/airflow/pull/36916) 
`airflow.triggers.external_task.WorkflowTrigger` start more actively use 
blocking IO - request to DB with non-async drivers.
   
   Instead of direct call sync method, it should be wrapped in one of the 
common practice to run sync code into async loop:
   - 
[`asyncio.to_thread`](https://docs.python.org/3/library/asyncio-task.html#asyncio.to_thread)
 Python 3.9+, for backward compatible with Python 3.8 it should use 
[`asyncio.loop.run_in_executor`](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.loop.run_in_executor)
   - 
[`asgiref.sync.sync_to_async`](https://docs.djangoproject.com/en/stable/topics/async/#asgiref.sync.sync_to_async)
   - [`anyio`](https://anyio.readthedocs.io/en/stable/) ???
   
   ### Committer
   
   - [X] I acknowledge that I am a maintainer/committer of the Apache Airflow 
project.


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