Skip to content

Commit b5e43a9

Browse files
authored
bug: modifies latency due to flakybot issues (#781)
1 parent 60a9887 commit b5e43a9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas_gbq/gbq.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,11 +419,12 @@ def run_query(self, query, max_results=None, progress_bar_type=None, **kwargs):
419419
# Having too small a timeout_ms results in individual
420420
# API calls timing out before they can finish.
421421
# ~300 milliseconds is rule of thumb for bare minimum
422-
# latency from the BigQuery API.
423-
minimum_latency = 400
422+
# latency from the BigQuery API, however, 400 milliseconds
423+
# produced too many issues with flakybot failures.
424+
minimum_latency = 500
424425
if timeout_ms < minimum_latency:
425426
raise QueryTimeout(
426-
f"Query timeout must be at least 400 milliseconds: timeout_ms equals {timeout_ms}."
427+
f"Query timeout must be at least 500 milliseconds: timeout_ms equals {timeout_ms}."
427428
)
428429
else:
429430
timeout_ms = None

0 commit comments

Comments
 (0)