BigQuery: Avoid too long(10 seconds) interval for bigquery api to get results (#7342)

This commit is contained in:
Tsuneo Yoshioka
2025-04-14 20:40:24 +09:00
committed by GitHub
parent 2375f0b05f
commit 4ed0ad3c9c

View File

@@ -86,7 +86,7 @@ def _get_query_results(jobs, project_id, location, job_id, start_index):
).execute()
logging.debug("query_reply %s", query_reply)
if not query_reply["jobComplete"]:
time.sleep(10)
time.sleep(1)
return _get_query_results(jobs, project_id, location, job_id, start_index)
return query_reply