Skip to content

Commit 43e36a1

Browse files
feat(v1beta2): Align ReadRows timeout with other versions of the API (#293)
- [ ] Regenerate this pull request now. Committer: @emkornfield PiperOrigin-RevId: 394308710 Source-Link: googleapis/googleapis@1549a69 Source-Link: googleapis/googleapis-gen@40b5e7d docs(v1beta2): Align session length with public documentation
1 parent 54cf722 commit 43e36a1

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

google/cloud/bigquery_storage_v1beta2/services/big_query_read/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ async def create_read_session(
199199
number of pre-filtered rows, so some filters can lead to
200200
lopsided assignments.
201201
202-
Read sessions automatically expire 24 hours after they
202+
Read sessions automatically expire 6 hours after they
203203
are created and do not require manual clean-up by the
204204
caller.
205205

google/cloud/bigquery_storage_v1beta2/services/big_query_read/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def create_read_session(
420420
number of pre-filtered rows, so some filters can lead to
421421
lopsided assignments.
422422
423-
Read sessions automatically expire 24 hours after they
423+
Read sessions automatically expire 6 hours after they
424424
are created and do not require manual clean-up by the
425425
caller.
426426

google/cloud/bigquery_storage_v1beta2/services/big_query_read/transports/grpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ def create_read_session(
255255
number of pre-filtered rows, so some filters can lead to
256256
lopsided assignments.
257257
258-
Read sessions automatically expire 24 hours after they
258+
Read sessions automatically expire 6 hours after they
259259
are created and do not require manual clean-up by the
260260
caller.
261261

google/cloud/bigquery_storage_v1beta2/services/big_query_read/transports/grpc_asyncio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ def create_read_session(
258258
number of pre-filtered rows, so some filters can lead to
259259
lopsided assignments.
260260
261-
Read sessions automatically expire 24 hours after they
261+
Read sessions automatically expire 6 hours after they
262262
are created and do not require manual clean-up by the
263263
caller.
264264

google/cloud/bigquery_storage_v1beta2/services/big_query_write/async_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ def append_rows(
331331
core_exceptions.ResourceExhausted,
332332
core_exceptions.ServiceUnavailable,
333333
),
334-
deadline=None,
334+
deadline=86400.0,
335335
),
336-
default_timeout=None,
336+
default_timeout=86400.0,
337337
client_info=DEFAULT_CLIENT_INFO,
338338
)
339339

google/cloud/bigquery_storage_v1beta2/services/big_query_write/transports/base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,9 +185,9 @@ def _prep_wrapped_messages(self, client_info):
185185
core_exceptions.ResourceExhausted,
186186
core_exceptions.ServiceUnavailable,
187187
),
188-
deadline=None,
188+
deadline=86400.0,
189189
),
190-
default_timeout=None,
190+
default_timeout=86400.0,
191191
client_info=client_info,
192192
),
193193
self.get_write_stream: gapic_v1.method.wrap_method(

0 commit comments

Comments
 (0)