Skip to content

Commit 7b5f96c

Browse files
author
Jon Wayne Parrott
committed
Fixing inconsistences in style
1 parent e4f827c commit 7b5f96c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ This repository holds the samples used in the python documentation on [cloud.goo
88
For more detailed introduction to a product, check the README in the
99
corresponding folder.
1010

11+
## Running the samples
12+
13+
Most samples must be run as modules instead of directly, for example:
14+
15+
```
16+
$ python -m bigquery.samples.async_query [your-project-id] [your-query]
17+
```
18+
19+
Refer to the README in the corresponding folder for any special instructions.
20+
1121
## Contributing changes
1222

1323
* See [CONTRIBUTING.md](CONTRIBUTING.md)

bigquery/samples/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ def get_service():
3333

3434

3535
# [START poll_job]
36-
def poll_job(service, projectId, jobId, interval=5.0, num_retries=5):
36+
def poll_job(service, project_id, job_id, interval=5.0, num_retries=5):
3737
"""checks the status of a job every *interval* seconds"""
3838

3939
import time
4040

41-
job_get = service.jobs().get(projectId=projectId, jobId=jobId)
41+
job_get = service.jobs().get(projectId=project_id, jobId=job_id)
4242
job_resource = job_get.execute(num_retries=num_retries)
4343

4444
while not job_resource['status']['state'] == 'DONE':

0 commit comments

Comments
 (0)