Skip to content

Commit 69c637e

Browse files
changed gcp identity check to be 0.5 seconds for timeout
1 parent d163d32 commit 69c637e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/snowflake/connector/auth/_auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def is_gce_cloud_run_job():
195195
job_vars = ["CLOUD_RUN_JOB", "CLOUD_RUN_EXECUTION"]
196196
return all(var in os.environ for var in job_vars)
197197

198-
def has_gcp_identity(timeout=2):
198+
def has_gcp_identity(timeout=0.5):
199199
try:
200200
response = requests.get(
201201
"http://metadata/computeMetadata/v1/instance/service-accounts/default/email",

0 commit comments

Comments
 (0)