Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

BigQuery: populate timeout parameter for getQueryResults#4209

Merged
tswast merged 3 commits into
googleapis:bigquery-b2googleapis/google-cloud-python:bigquery-b2from
tswast:bqb2-timeouttswast/google-cloud-python:bqb2-timeoutCopy head branch name to clipboard
Oct 18, 2017
Merged

BigQuery: populate timeout parameter for getQueryResults#4209
tswast merged 3 commits into
googleapis:bigquery-b2googleapis/google-cloud-python:bigquery-b2from
tswast:bqb2-timeouttswast/google-cloud-python:bqb2-timeoutCopy head branch name to clipboard

Conversation

@tswast

@tswast tswast commented Oct 17, 2017

Copy link
Copy Markdown
Contributor

This will allow QueryJob to respect the timeout value for futures.

Closes #4135.

This will allow QueryJob to respect the timeout value for futures.
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 17, 2017
Comment thread bigquery/google/cloud/bigquery/job.py Outdated
if self._done_timeout is not None:
# Subtract a buffer of a 100 milliseconds for context switching,
# network latency, etc.
timeout_ms = int(1000 * self._done_timeout) - 100

This comment was marked as spam.

This comment was marked as spam.

if self.state != _DONE_STATE:
self._query_results = self._client._get_query_results(
self.job_id, retry)
self.job_id, retry,

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@tseaver tseaver added the api: bigquery Issues related to the BigQuery API. label Oct 18, 2017
@tswast

tswast commented Oct 18, 2017

Copy link
Copy Markdown
Contributor Author

Circle error is with Pub/Sub. cloud.google.bigquery tests are passing.

Discussed timeout exception in person. The timeout option for getQueryResults is a parameter, not enforced client-side. When the time expires, the API will return a successful response with the incomplete job state.

@tswast tswast merged commit af3da30 into googleapis:bigquery-b2 Oct 18, 2017
@tswast tswast deleted the bqb2-timeout branch October 18, 2017 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigquery Issues related to the BigQuery API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.