fix(oauth2): silence lock acquisition errors on token refresh (#39463)

Co-authored-by: Beto Dealmeida <beto@preset.io>
This commit is contained in:
Beto Dealmeida
2026-04-20 18:08:33 -04:00
committed by GitHub
parent 6948e73ec7
commit 5fb89b865d
2 changed files with 41 additions and 0 deletions

View File

@@ -82,6 +82,8 @@ def generate_code_challenge(code_verifier: str) -> str:
factor=10,
base=2,
max_tries=5,
raise_on_giveup=False,
giveup_log_level=logging.DEBUG,
)
def get_oauth2_access_token(
config: OAuth2ClientConfig,