You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're seeing the following warning at startup when using a StreamingCredentialProvider (in particular EntraIdCredentialsProvider from redis-py-entraid):
No registered callback for token renewal task. Renewal cancelled
Token renewal seems to work normally, so it looks like a false positive that clutters the logs.
Looking into the implementation, the warning comes from the _renew_token_async method in the TokenManager, where self._listener.on_next is initially None. The EntraIdCredentialsProvider creates a CredentialsListener instance at init, and only later sets on_next via the .on_next() method.
This means the token renewal task may start before the callback is set, causing the warning. This only occurs during startup and appears to resolve itself later, presumably once the callback is registered.
Let me know if you need more information
Thanks!
The text was updated successfully, but these errors were encountered:
We're seeing the following warning at startup when using a
StreamingCredentialProvider
(in particularEntraIdCredentialsProvider
fromredis-py-entraid
):Token renewal seems to work normally, so it looks like a false positive that clutters the logs.
Looking into the implementation, the warning comes from the
_renew_token_async
method in theTokenManager
, whereself._listener.on_next
is initiallyNone
. TheEntraIdCredentialsProvider
creates aCredentialsListener
instance at init, and only later setson_next
via the.on_next()
method.This means the token renewal task may start before the callback is set, causing the warning. This only occurs during startup and appears to resolve itself later, presumably once the callback is registered.
Let me know if you need more information
Thanks!
The text was updated successfully, but these errors were encountered: