mirror of https://github.com/celery/kombu.git
parent
59a7ea4075
commit
5974800df0
|
@ -737,7 +737,9 @@ class Channel(virtual.Channel):
|
||||||
datetime_now_utc = datetime.now(timezone.utc).replace(
|
datetime_now_utc = datetime.now(timezone.utc).replace(
|
||||||
tzinfo=None
|
tzinfo=None
|
||||||
)
|
)
|
||||||
sts_token_timeout = self.transport_options.get('sts_token_timeout', 900)
|
sts_token_timeout = self.transport_options.get(
|
||||||
|
'sts_token_timeout', 900
|
||||||
|
)
|
||||||
# STS token is generated only if it is not present or
|
# STS token is generated only if it is not present or
|
||||||
# the time reaches 80% of the token TTL
|
# the time reaches 80% of the token TTL
|
||||||
if (not hasattr(self, 'sts_expiration')) or (
|
if (not hasattr(self, 'sts_expiration')) or (
|
||||||
|
|
Loading…
Reference in New Issue