mik-laj commented on issue #12639:
URL: https://github.com/apache/airflow/issues/12639#issuecomment-734314872


   @baolsen  We commonly use tenacity. 
   
   It would be fantastic if you could rewrite the code to use 
AssumeRoleCredentialFetcher to handle credential expiration as well. Currently, 
the STS token is valid for only one hour and after that time it expires and 
Airflow does not try to obtain a new token.
   
https://github.com/boto/botocore/blob/6e3ec4e8544ea32e130ac42b414a2819627c475b/botocore/credentials.py#L758
   Here is an example for GCP authorization
   
https://github.com/apache/airflow/blob/master/airflow/providers/amazon/aws/hooks/base_aws.py#L271-L281


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


Reply via email to