Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support timeoutMs param #28

Merged
merged 2 commits into from
Nov 16, 2023
Merged

Conversation

coryt
Copy link
Contributor

@coryt coryt commented Nov 16, 2023

Add support for the query param timeoutMs.

timeoutMs | integer Optional
Specifies the maximum amount of time, in milliseconds, that the client is willing to wait for the query to complete. By default, this limit is 10 seconds (10,000 milliseconds). If the query is complete, the jobComplete field in the response is true. If the query has not yet completed, jobComplete is false.You can request a longer timeout period in the timeoutMs field. However, the call is not guaranteed to wait for the specified timeout; it typically returns after around 200 seconds (200,000 milliseconds), even if the query is not complete.If jobComplete is false, you can continue to wait for the query to complete by calling the getQueryResults method until the jobComplete field in the getQueryResults response is true.
https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs/query#queryrequest

lib/req_bigquery.ex Outdated Show resolved Hide resolved
@josevalim josevalim merged commit d35aa1e into livebook-dev:main Nov 16, 2023
1 check passed
@josevalim
Copy link

💚 💙 💜 💛 ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants