m1racoli commented on PR #47326:
URL: https://github.com/apache/airflow/pull/47326#issuecomment-2701218730

   > I'm curious how noticeable the blockage on the async loop was though. Did 
you have a very noticeable issue that caused you to drill down and find this?
   
   I've been working with a customer. They have a DAG which kicks off up to 300 
deferrable `EcsRunTaskOperator` tasks and they noticed significant performance 
degradation. We observed the log message
   ```
   Triggerer's async thread was blocked for 8.11 seconds, likely by a 
badly-written trigger. Set PYTHONASYNCIODEBUG=1 to get more information on 
overrunning coroutines.
   ```
   appearing 10-19 times per minute with values of 2-11 seconds. In particular 
the TaskDoneTrigger [instantiates 2 clients per 
run](https://github.com/apache/airflow/blob/4651ccce787b33af9ea03f43a876538d806ac68a/providers/amazon/src/airflow/providers/amazon/aws/triggers/ecs.py#L170-L171)
 (one each for EcsHook and AwsLogsHook). The triggerer basically was blocked 
for ten's of minutes while sequentially instantiating those async clients.


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