Is there a way to list all job id’s using bq command line tool for a given timeframe? What I need to do is to loop through all Id’s and find if there is any error.
I use the web interface to know the job id and then use the command:
bq show -j --format=prettyjson job_id
Later I would manually copy paste the “error” part of the output. This takes a lot of time to report the job summary for a given day.
Sure, you can list up to the last 1,000 jobs for a project you have access to by running:
If you have more than 1,000 jobs, you can also write a Python script to list all jobs by paging through results in batches of 1,000 – like so: