Skip to content

Commit c38af98

Browse files
feat: increase the logical timeout (retry deadline) to 5 minutes (#198)
* feat: increase the logical timeout (retry deadline) to 5 minutes PiperOrigin-RevId: 417448084 Source-Link: googleapis/googleapis@489719a Source-Link: googleapis/googleapis-gen@97a80b4 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTdhODBiNGZhOGE5NzliODZjNWU4M2Q3ZWQ4YmI4ZDJkM2ViNmM0MCJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 32a0b6c commit c38af98

2 files changed

Lines changed: 40 additions & 40 deletions

File tree

  • packages/google-cloud-bigquery-reservation/google/cloud/bigquery_reservation_v1/services/reservation_service

packages/google-cloud-bigquery-reservation/google/cloud/bigquery_reservation_v1/services/reservation_service/async_client.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,9 @@ async def list_reservations(
363363
core_exceptions.DeadlineExceeded,
364364
core_exceptions.ServiceUnavailable,
365365
),
366-
deadline=60.0,
366+
deadline=300.0,
367367
),
368-
default_timeout=60.0,
368+
default_timeout=300.0,
369369
client_info=DEFAULT_CLIENT_INFO,
370370
)
371371

@@ -451,9 +451,9 @@ async def get_reservation(
451451
core_exceptions.DeadlineExceeded,
452452
core_exceptions.ServiceUnavailable,
453453
),
454-
deadline=60.0,
454+
deadline=300.0,
455455
),
456-
default_timeout=60.0,
456+
default_timeout=300.0,
457457
client_info=DEFAULT_CLIENT_INFO,
458458
)
459459

@@ -529,9 +529,9 @@ async def delete_reservation(
529529
core_exceptions.DeadlineExceeded,
530530
core_exceptions.ServiceUnavailable,
531531
),
532-
deadline=60.0,
532+
deadline=300.0,
533533
),
534-
default_timeout=60.0,
534+
default_timeout=300.0,
535535
client_info=DEFAULT_CLIENT_INFO,
536536
)
537537

@@ -787,9 +787,9 @@ async def list_capacity_commitments(
787787
core_exceptions.DeadlineExceeded,
788788
core_exceptions.ServiceUnavailable,
789789
),
790-
deadline=60.0,
790+
deadline=300.0,
791791
),
792-
default_timeout=60.0,
792+
default_timeout=300.0,
793793
client_info=DEFAULT_CLIENT_INFO,
794794
)
795795

@@ -887,9 +887,9 @@ async def get_capacity_commitment(
887887
core_exceptions.DeadlineExceeded,
888888
core_exceptions.ServiceUnavailable,
889889
),
890-
deadline=60.0,
890+
deadline=300.0,
891891
),
892-
default_timeout=60.0,
892+
default_timeout=300.0,
893893
client_info=DEFAULT_CLIENT_INFO,
894894
)
895895

@@ -965,9 +965,9 @@ async def delete_capacity_commitment(
965965
core_exceptions.DeadlineExceeded,
966966
core_exceptions.ServiceUnavailable,
967967
),
968-
deadline=60.0,
968+
deadline=300.0,
969969
),
970-
default_timeout=60.0,
970+
default_timeout=300.0,
971971
client_info=DEFAULT_CLIENT_INFO,
972972
)
973973

@@ -1492,9 +1492,9 @@ async def list_assignments(
14921492
core_exceptions.DeadlineExceeded,
14931493
core_exceptions.ServiceUnavailable,
14941494
),
1495-
deadline=60.0,
1495+
deadline=300.0,
14961496
),
1497-
default_timeout=60.0,
1497+
default_timeout=300.0,
14981498
client_info=DEFAULT_CLIENT_INFO,
14991499
)
15001500

@@ -1590,9 +1590,9 @@ async def delete_assignment(
15901590
core_exceptions.DeadlineExceeded,
15911591
core_exceptions.ServiceUnavailable,
15921592
),
1593-
deadline=60.0,
1593+
deadline=300.0,
15941594
),
1595-
default_timeout=60.0,
1595+
default_timeout=300.0,
15961596
client_info=DEFAULT_CLIENT_INFO,
15971597
)
15981598

@@ -1720,9 +1720,9 @@ async def search_assignments(
17201720
core_exceptions.DeadlineExceeded,
17211721
core_exceptions.ServiceUnavailable,
17221722
),
1723-
deadline=60.0,
1723+
deadline=300.0,
17241724
),
1725-
default_timeout=60.0,
1725+
default_timeout=300.0,
17261726
client_info=DEFAULT_CLIENT_INFO,
17271727
)
17281728

@@ -2018,9 +2018,9 @@ async def get_bi_reservation(
20182018
core_exceptions.DeadlineExceeded,
20192019
core_exceptions.ServiceUnavailable,
20202020
),
2021-
deadline=60.0,
2021+
deadline=300.0,
20222022
),
2023-
default_timeout=60.0,
2023+
default_timeout=300.0,
20242024
client_info=DEFAULT_CLIENT_INFO,
20252025
)
20262026

packages/google-cloud-bigquery-reservation/google/cloud/bigquery_reservation_v1/services/reservation_service/transports/base.py

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ def _prep_wrapped_messages(self, client_info):
139139
core_exceptions.DeadlineExceeded,
140140
core_exceptions.ServiceUnavailable,
141141
),
142-
deadline=60.0,
142+
deadline=300.0,
143143
),
144-
default_timeout=60.0,
144+
default_timeout=300.0,
145145
client_info=client_info,
146146
),
147147
self.get_reservation: gapic_v1.method.wrap_method(
@@ -154,9 +154,9 @@ def _prep_wrapped_messages(self, client_info):
154154
core_exceptions.DeadlineExceeded,
155155
core_exceptions.ServiceUnavailable,
156156
),
157-
deadline=60.0,
157+
deadline=300.0,
158158
),
159-
default_timeout=60.0,
159+
default_timeout=300.0,
160160
client_info=client_info,
161161
),
162162
self.delete_reservation: gapic_v1.method.wrap_method(
@@ -169,9 +169,9 @@ def _prep_wrapped_messages(self, client_info):
169169
core_exceptions.DeadlineExceeded,
170170
core_exceptions.ServiceUnavailable,
171171
),
172-
deadline=60.0,
172+
deadline=300.0,
173173
),
174-
default_timeout=60.0,
174+
default_timeout=300.0,
175175
client_info=client_info,
176176
),
177177
self.update_reservation: gapic_v1.method.wrap_method(
@@ -192,9 +192,9 @@ def _prep_wrapped_messages(self, client_info):
192192
core_exceptions.DeadlineExceeded,
193193
core_exceptions.ServiceUnavailable,
194194
),
195-
deadline=60.0,
195+
deadline=300.0,
196196
),
197-
default_timeout=60.0,
197+
default_timeout=300.0,
198198
client_info=client_info,
199199
),
200200
self.get_capacity_commitment: gapic_v1.method.wrap_method(
@@ -207,9 +207,9 @@ def _prep_wrapped_messages(self, client_info):
207207
core_exceptions.DeadlineExceeded,
208208
core_exceptions.ServiceUnavailable,
209209
),
210-
deadline=60.0,
210+
deadline=300.0,
211211
),
212-
default_timeout=60.0,
212+
default_timeout=300.0,
213213
client_info=client_info,
214214
),
215215
self.delete_capacity_commitment: gapic_v1.method.wrap_method(
@@ -222,9 +222,9 @@ def _prep_wrapped_messages(self, client_info):
222222
core_exceptions.DeadlineExceeded,
223223
core_exceptions.ServiceUnavailable,
224224
),
225-
deadline=60.0,
225+
deadline=300.0,
226226
),
227-
default_timeout=60.0,
227+
default_timeout=300.0,
228228
client_info=client_info,
229229
),
230230
self.update_capacity_commitment: gapic_v1.method.wrap_method(
@@ -255,9 +255,9 @@ def _prep_wrapped_messages(self, client_info):
255255
core_exceptions.DeadlineExceeded,
256256
core_exceptions.ServiceUnavailable,
257257
),
258-
deadline=60.0,
258+
deadline=300.0,
259259
),
260-
default_timeout=60.0,
260+
default_timeout=300.0,
261261
client_info=client_info,
262262
),
263263
self.delete_assignment: gapic_v1.method.wrap_method(
@@ -270,9 +270,9 @@ def _prep_wrapped_messages(self, client_info):
270270
core_exceptions.DeadlineExceeded,
271271
core_exceptions.ServiceUnavailable,
272272
),
273-
deadline=60.0,
273+
deadline=300.0,
274274
),
275-
default_timeout=60.0,
275+
default_timeout=300.0,
276276
client_info=client_info,
277277
),
278278
self.search_assignments: gapic_v1.method.wrap_method(
@@ -285,9 +285,9 @@ def _prep_wrapped_messages(self, client_info):
285285
core_exceptions.DeadlineExceeded,
286286
core_exceptions.ServiceUnavailable,
287287
),
288-
deadline=60.0,
288+
deadline=300.0,
289289
),
290-
default_timeout=60.0,
290+
default_timeout=300.0,
291291
client_info=client_info,
292292
),
293293
self.search_all_assignments: gapic_v1.method.wrap_method(
@@ -308,9 +308,9 @@ def _prep_wrapped_messages(self, client_info):
308308
core_exceptions.DeadlineExceeded,
309309
core_exceptions.ServiceUnavailable,
310310
),
311-
deadline=60.0,
311+
deadline=300.0,
312312
),
313-
default_timeout=60.0,
313+
default_timeout=300.0,
314314
client_info=client_info,
315315
),
316316
self.update_bi_reservation: gapic_v1.method.wrap_method(

0 commit comments

Comments
 (0)