talkiq / gcloud-aio

(Asyncio OR Threadsafe) Google Cloud Client Library for Python
https://talkiq.github.io/gcloud-aio
270 stars 89 forks source link

perf(auth): avoid unnecessary token refresh on get_project() #653

Closed TheKevJames closed 9 months ago

TheKevJames commented 9 months ago

Summary

Perf optimization: for GCE_METADATA tokens, there's no hit the token refresh endpoint when we're only looking to call get_project() and have the value set locally.