If for some reason it is wanted to stop/cancel a batch query job that is not started yet (Status.State = "PENDING"), is it possible to do it? (library used: net Google.Apis.Bigquery.v2.1.5.0.122-beta).
The shell command bq cancel job_id will do this now. You can get the job_id from the Query History tab in the BigQuery console. If you started the query via the CLI, it will have logged the job_id to the standard output. Save this answer.
BigQuery now supports canceling query jobs. You can do this via the bq
command line client via:
bq cancel <job_id>
or from the API via the jobs.cancel method (documented here)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With