Skip to content
This repository has been archived by the owner on Jan 17, 2025. It is now read-only.

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
Contributor

💚 💙 💜 💛 ❤️

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

Successfully merging this pull request may close these issues.

2 participants