baolsen commented on issue #7441: [AIRFLOW-6822] AWS hooks should cache boto3 
client
URL: https://github.com/apache/airflow/pull/7441#issuecomment-588225074
 
 
   Hey @ashb 
   
   Can you advise me on something... Please check
   providers/amazon/aws/sensors/s3_prefix.py
   
   Within the poke method, the hook is being recreated each time. Is there a 
reason for this - maybe something to do with the new reschedule behavior? I'm 
not sure why it is written like that and not just do 'self.hook = X' in the 
__init__ method of the sensor.
   
   There are a few of the AWS sensors with different implementations around 
this, I thought its a good idea to change them to be more consistent as well

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to