Reputation: 77
After a certain time, I would like to make a synchronous job (launched with jobs.query
) asynchronous (as if it were launched with jobs.insert
) but I don't want to launch a new job. Is it possible?
Upvotes: 0
Views: 432
Reputation: 384
When you say jobs.query
here I'm assuming you're referring bigquery rest api.
One approach to make your query job async, referring to their doc, is as below:
timeoutMs
property in QueryRequest while preparing query POST
request, so that you request does not wait till query finishes i.e. become synchronousPOST
ing the query, past minimum timeout value, you'll receive response with a JobReference attributejobId
from JobReference to track/poll status of your query at later time asynchronouslyAnd if you refer to not-rest api approaches such as for Java or Python languages, they have out-of-the-box api specifically to execute the query synchronously or asynchronously.
Upvotes: 1