potiuk commented on PR #36492:
URL: https://github.com/apache/airflow/pull/36492#issuecomment-1872543877

   > Yes. You are right. It makes even more sense in the case of 
request/response APIs. However, in airflow, the trigger might run for 
seconds/minutes/hours (ex: S3KeyTrigger, KubernetesPodTrigger, etc.). I believe 
accessing the credentials one time should be ok.
   
   Not necessarily. This is generally a very bad idea to make a  blocking call 
in event loop. All kinds of problems - even  DNS lookup hanging for a second 
will heavily impact the ability of Triggerer. It is supposed to handle 1000s of 
triggers running in single even loop. So even if one of the triggers 
occasionally hangs for a second, it might have enormous impact on performance 
of trigger.


-- 
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: commits-unsubscr...@airflow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to