diff --git a/docs/bigquery/snippets.py b/docs/bigquery/snippets.py index 19892b1aa538..98c17c2b156d 100644 --- a/docs/bigquery/snippets.py +++ b/docs/bigquery/snippets.py @@ -2003,11 +2003,8 @@ def test_client_list_jobs(client): # from google.cloud import bigquery # client = bigquery.Client(project='my_project') - # List all accessible jobs in a project - for job in client.list_jobs(): # API request(s) - print(job.job_id) - - # Optionally, limit the results to 10 jobs + # List the 10 most recent jobs in reverse chronological order. + # Omit the max_results parameter to list jobs from the past 6 months. for job in client.list_jobs(max_results=10): # API request(s) print(job.job_id) # [END bigquery_list_jobs]