Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit696c443

Browse files
plamuttswast
andauthored
docs: explain retry behavior for DONE jobs (#532)
* docs: explain retry behavior for DONE jobs* Update google/cloud/bigquery/job/query.pyCo-authored-by: Tim Swast <swast@google.com>
1 parentbb9a94c commit696c443

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

‎google/cloud/bigquery/job/base.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,9 @@ def done(self, retry=DEFAULT_RETRY, timeout=None, reload=True):
614614
"""Checks if the job is complete.
615615
616616
Args:
617-
retry (Optional[google.api_core.retry.Retry]): How to retry the RPC.
617+
retry (Optional[google.api_core.retry.Retry]):
618+
How to retry the RPC. If the job state is ``DONE``, retrying is aborted
619+
early, as the job will not change anymore.
618620
timeout (Optional[float]):
619621
The number of seconds to wait for the underlying HTTP transport
620622
before using ``retry``.
@@ -635,7 +637,9 @@ def result(self, retry=DEFAULT_RETRY, timeout=None):
635637
"""Start the job and wait for it to complete and get the result.
636638
637639
Args:
638-
retry (Optional[google.api_core.retry.Retry]): How to retry the RPC.
640+
retry (Optional[google.api_core.retry.Retry]):
641+
How to retry the RPC. If the job state is ``DONE``, retrying is aborted
642+
early, as the job will not change anymore.
639643
timeout (Optional[float]):
640644
The number of seconds to wait for the underlying HTTP transport
641645
before using ``retry``.

‎google/cloud/bigquery/job/query.py‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,8 @@ def done(self, retry=DEFAULT_RETRY, timeout=None, reload=True):
979979
980980
Args:
981981
retry (Optional[google.api_core.retry.Retry]):
982-
How to retry the call that retrieves query results.
982+
How to retry the call that retrieves query results. If the job state is
983+
``DONE``, retrying is aborted early, as the job will not change anymore.
983984
timeout (Optional[float]):
984985
The number of seconds to wait for the underlying HTTP transport
985986
before using ``retry``.
@@ -1128,7 +1129,9 @@ def result(
11281129
max_results (Optional[int]):
11291130
The maximum total number of rows from this request.
11301131
retry (Optional[google.api_core.retry.Retry]):
1131-
How to retry the call that retrieves rows.
1132+
How to retry the call that retrieves rows. If the job state is
1133+
``DONE``, retrying is aborted early even if the results are not
1134+
available, as this will not change anymore.
11321135
timeout (Optional[float]):
11331136
The number of seconds to wait for the underlying HTTP transport
11341137
before using ``retry``.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp