Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions docs/bigquery-usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,15 @@ Then, begin executing the job on the server:
>>> job.created
datetime.datetime(2015, 7, 23, 9, 30, 20, 268260, tzinfo=<UTC>)
>>> job.state
'running'
'RUNNING'

Poll until the job is complete:

.. doctest::

>>> import time
>>> retry_count = 100
>>> while retry_count > 0 and job.state == 'running':
>>> while retry_count > 0 and job.state != 'DONE':
... retry_count -= 1
... time.sleep(10)
... job.reload() # API call
Expand Down Expand Up @@ -329,15 +329,15 @@ Then, begin executing the job on the server:
>>> job.created
datetime.datetime(2015, 7, 23, 9, 30, 20, 268260, tzinfo=<UTC>)
>>> job.state
'running'
'RUNNING'

Poll until the job is complete:

.. doctest::

>>> import time
>>> retry_count = 100
>>> while retry_count > 0 and job.state == 'running':
>>> while retry_count > 0 and job.state != 'DONE':
... retry_count -= 1
... time.sleep(10)
... job.reload() # API call
Expand Down Expand Up @@ -387,15 +387,15 @@ Then, begin executing the job on the server:
>>> job.created
datetime.datetime(2015, 7, 23, 9, 30, 20, 268260, tzinfo=<UTC>)
>>> job.state
'running'
'RUNNING'

Poll until the job is complete:

.. doctest::

>>> import time
>>> retry_count = 100
>>> while retry_count > 0 and job.state == 'running':
>>> while retry_count > 0 and job.state != 'DONE':
... retry_count -= 1
... time.sleep(10)
... job.reload() # API call
Expand Down Expand Up @@ -441,15 +441,15 @@ Then, begin executing the job on the server:
>>> job.created
datetime.datetime(2015, 7, 23, 9, 30, 20, 268260, tzinfo=<UTC>)
>>> job.state
'running'
'RUNNING'

Poll until the job is complete:

.. doctest::

>>> import time
>>> retry_count = 100
>>> while retry_count > 0 and job.state == 'running':
>>> while retry_count > 0 and job.state != 'DONE':
... retry_count -= 1
... time.sleep(10)
... job.reload() # API call
Expand Down