Skip to content

Commit b757d39

Browse files
fix: update retry config (#31)
1 parent 79ec030 commit b757d39

15 files changed

+985
-252
lines changed

packages/google-cloud-recommender/google/cloud/recommender_v1/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626

2727
if sys.version_info[:2] == (2, 7):
2828
message = (
29-
"A future version of this library will drop support for Python 2.7."
30-
"More details about Python 2 support for Google Cloud Client Libraries"
29+
"A future version of this library will drop support for Python 2.7. "
30+
"More details about Python 2 support for Google Cloud Client Libraries "
3131
"can be found at https://cloud.google.com/python/docs/python2-sunset/"
3232
)
3333
warnings.warn(message, DeprecationWarning)

packages/google-cloud-recommender/google/cloud/recommender_v1/gapic/recommender_client_config.py

Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,45 +2,64 @@
22
"interfaces": {
33
"google.cloud.recommender.v1.Recommender": {
44
"retry_codes": {
5-
"idempotent": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
6-
"non_idempotent": [],
5+
"retry_policy_1_codes": ["DEADLINE_EXCEEDED", "UNAVAILABLE"],
6+
"no_retry_codes": [],
7+
"no_retry_1_codes": [],
78
},
89
"retry_params": {
9-
"default": {
10+
"retry_policy_1_params": {
1011
"initial_retry_delay_millis": 100,
1112
"retry_delay_multiplier": 1.3,
1213
"max_retry_delay_millis": 60000,
13-
"initial_rpc_timeout_millis": 20000,
14+
"initial_rpc_timeout_millis": 60000,
1415
"rpc_timeout_multiplier": 1.0,
15-
"max_rpc_timeout_millis": 20000,
16-
"total_timeout_millis": 600000,
17-
}
16+
"max_rpc_timeout_millis": 60000,
17+
"total_timeout_millis": 60000,
18+
},
19+
"no_retry_params": {
20+
"initial_retry_delay_millis": 0,
21+
"retry_delay_multiplier": 0.0,
22+
"max_retry_delay_millis": 0,
23+
"initial_rpc_timeout_millis": 0,
24+
"rpc_timeout_multiplier": 1.0,
25+
"max_rpc_timeout_millis": 0,
26+
"total_timeout_millis": 0,
27+
},
28+
"no_retry_1_params": {
29+
"initial_retry_delay_millis": 0,
30+
"retry_delay_multiplier": 0.0,
31+
"max_retry_delay_millis": 0,
32+
"initial_rpc_timeout_millis": 60000,
33+
"rpc_timeout_multiplier": 1.0,
34+
"max_rpc_timeout_millis": 60000,
35+
"total_timeout_millis": 60000,
36+
},
1837
},
1938
"methods": {
2039
"ListRecommendations": {
2140
"timeout_millis": 60000,
22-
"retry_codes_name": "idempotent",
23-
"retry_params_name": "default",
41+
"retry_codes_name": "retry_policy_1_codes",
42+
"retry_params_name": "retry_policy_1_params",
2443
},
2544
"GetRecommendation": {
2645
"timeout_millis": 60000,
27-
"retry_codes_name": "idempotent",
28-
"retry_params_name": "default",
46+
"retry_codes_name": "retry_policy_1_codes",
47+
"retry_params_name": "retry_policy_1_params",
2948
},
3049
"MarkRecommendationClaimed": {
3150
"timeout_millis": 60000,
32-
"retry_codes_name": "non_idempotent",
33-
"retry_params_name": "default",
51+
"retry_codes_name": "no_retry_1_codes",
52+
"retry_params_name": "no_retry_1_params",
3453
},
3554
"MarkRecommendationSucceeded": {
3655
"timeout_millis": 60000,
37-
"retry_codes_name": "non_idempotent",
38-
"retry_params_name": "default",
56+
"retry_codes_name": "no_retry_1_codes",
57+
"retry_params_name": "no_retry_1_params",
3958
},
4059
"MarkRecommendationFailed": {
4160
"timeout_millis": 60000,
42-
"retry_codes_name": "non_idempotent",
43-
"retry_params_name": "default",
61+
"retry_codes_name": "no_retry_1_codes",
62+
"retry_params_name": "no_retry_1_params",
4463
},
4564
},
4665
}

0 commit comments

Comments
 (0)