Retrieves remaining results by repeatedly invoking #next until
#next? returns false. Calls the given block once for each
result, which is passed as the argument to the block.
An Enumerator is returned if no block is given.
This method will make repeated API calls until all remaining results
are retrieved. (Unlike #each, for example, which merely iterates
over the results returned by a single API call.) Use with caution.
Parameter
request_limit (Integer) (defaults to: nil) — The upper limit of API requests to
make to load all jobs. Default is no limit.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# BigQuery API - Class Google::Cloud::Bigquery::Job::List (v1.55.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.55.0 (latest)](/ruby/docs/reference/google-cloud-bigquery/latest/Google-Cloud-Bigquery-Job-List)\n- [1.54.0](/ruby/docs/reference/google-cloud-bigquery/1.54.0/Google-Cloud-Bigquery-Job-List)\n- [1.53.0](/ruby/docs/reference/google-cloud-bigquery/1.53.0/Google-Cloud-Bigquery-Job-List)\n- [1.52.1](/ruby/docs/reference/google-cloud-bigquery/1.52.1/Google-Cloud-Bigquery-Job-List)\n- [1.51.1](/ruby/docs/reference/google-cloud-bigquery/1.51.1/Google-Cloud-Bigquery-Job-List)\n- [1.50.0](/ruby/docs/reference/google-cloud-bigquery/1.50.0/Google-Cloud-Bigquery-Job-List)\n- [1.49.1](/ruby/docs/reference/google-cloud-bigquery/1.49.1/Google-Cloud-Bigquery-Job-List)\n- [1.48.1](/ruby/docs/reference/google-cloud-bigquery/1.48.1/Google-Cloud-Bigquery-Job-List)\n- [1.47.0](/ruby/docs/reference/google-cloud-bigquery/1.47.0/Google-Cloud-Bigquery-Job-List)\n- [1.46.1](/ruby/docs/reference/google-cloud-bigquery/1.46.1/Google-Cloud-Bigquery-Job-List)\n- [1.45.0](/ruby/docs/reference/google-cloud-bigquery/1.45.0/Google-Cloud-Bigquery-Job-List)\n- [1.44.2](/ruby/docs/reference/google-cloud-bigquery/1.44.2/Google-Cloud-Bigquery-Job-List)\n- [1.43.1](/ruby/docs/reference/google-cloud-bigquery/1.43.1/Google-Cloud-Bigquery-Job-List)\n- [1.42.0](/ruby/docs/reference/google-cloud-bigquery/1.42.0/Google-Cloud-Bigquery-Job-List)\n- [1.41.0](/ruby/docs/reference/google-cloud-bigquery/1.41.0/Google-Cloud-Bigquery-Job-List)\n- [1.40.0](/ruby/docs/reference/google-cloud-bigquery/1.40.0/Google-Cloud-Bigquery-Job-List)\n- [1.39.0](/ruby/docs/reference/google-cloud-bigquery/1.39.0/Google-Cloud-Bigquery-Job-List)\n- [1.38.1](/ruby/docs/reference/google-cloud-bigquery/1.38.1/Google-Cloud-Bigquery-Job-List) \nReference documentation and code samples for the BigQuery API class Google::Cloud::Bigquery::Job::List.\n\nJob::List is a special case Array with additional values. \n\nInherits\n--------\n\n- Array\n\nMethods\n-------\n\n### #all\n\n def all(request_limit: nil, &block) { |job| ... } -\u003e Enumerator\n\nRetrieves remaining results by repeatedly invoking [#next](/ruby/docs/reference/google-cloud-bigquery/latest/Google-Cloud-Bigquery-Job-List#Google__Cloud__Bigquery__Job__List_next_instance_ \"Google::Cloud::Bigquery::Job::List#next (method)\") until\n[#next?](/ruby/docs/reference/google-cloud-bigquery/latest/Google-Cloud-Bigquery-Job-List#Google__Cloud__Bigquery__Job__List_next__instance_ \"Google::Cloud::Bigquery::Job::List#next? (method)\") returns `false`. Calls the given block once for each\nresult, which is passed as the argument to the block.\n\n\nAn Enumerator is returned if no block is given.\n\n\u003cbr /\u003e\n\nThis method will make repeated API calls until all remaining results\nare retrieved. (Unlike `#each`, for example, which merely iterates\nover the results returned by a single API call.) Use with caution. \n**Parameter**\n\n- **request_limit** (Integer) *(defaults to: nil)* --- The upper limit of API requests to make to load all jobs. Default is no limit. \n**Yields**\n\n- (job) --- The block for accessing each job. \n**Yield Parameter**\n\n- **job** ([Job](./Google-Cloud-Bigquery-Job)) --- The job object. \n**Returns**\n\n- (Enumerator)\n**Examples**\n\nIterating each job by passing a block: \n\n```ruby\nrequire \"google/cloud/bigquery\"\n\nbigquery = Google::Cloud::Bigquery.new\n\nbigquery.jobs.all do |job|\n puts job.state\nend\n```\n\nUsing the enumerator by not passing a block: \n\n```ruby\nrequire \"google/cloud/bigquery\"\n\nbigquery = Google::Cloud::Bigquery.new\n\nall_states = bigquery.jobs.all.map do |job|\n job.state\nend\n```\n\nLimit the number of API calls made: \n\n```ruby\nrequire \"google/cloud/bigquery\"\n\nbigquery = Google::Cloud::Bigquery.new\n\nbigquery.jobs.all(request_limit: 10) do |job|\n puts job.state\nend\n```\n\n### #etag\n\n def etag()\n\nA hash of this page of results.\n\n### #etag=\n\n def etag=(value)\n\nA hash of this page of results.\n\n### #next\n\n def next() -\u003e Job::List\n\nRetrieve the next page of jobs. \n**Returns**\n\n- ([Job::List](./Google-Cloud-Bigquery-Job-List))\n**Example** \n\n```ruby\nrequire \"google/cloud/bigquery\"\n\nbigquery = Google::Cloud::Bigquery.new\n\njobs = bigquery.jobs\nif jobs.next?\n next_jobs = jobs.next\nend\n```\n\n### #next?\n\n def next?() -\u003e Boolean\n\nWhether there is a next page of jobs. \n**Returns**\n\n- (Boolean)\n**Example** \n\n```ruby\nrequire \"google/cloud/bigquery\"\n\nbigquery = Google::Cloud::Bigquery.new\n\njobs = bigquery.jobs\nif jobs.next?\n next_jobs = jobs.next\nend\n```\n\n### #token\n\n def token()\n\nIf not empty, indicates that there are more records that match\nthe request and this value should be passed to continue.\n\n### #token=\n\n def token=(value)\n\nIf not empty, indicates that there are more records that match\nthe request and this value should be passed to continue."]]