From 012c553112fcceb7b69822e24335575bf99ec62b Mon Sep 17 00:00:00 2001 From: Google APIs Date: Tue, 21 Apr 2020 11:37:20 -0700 Subject: [PATCH] feat: Adding Retry policy for OS Config V1 AgentEndpointService PiperOrigin-RevId: 307647669 --- .../v1/agentendpoint_grpc_service_config.json | 35 ++++++++++++------- 1 file changed, 23 insertions(+), 12 deletions(-) diff --git a/google/cloud/osconfig/agentendpoint/v1/agentendpoint_grpc_service_config.json b/google/cloud/osconfig/agentendpoint/v1/agentendpoint_grpc_service_config.json index e81315602..38756d46e 100644 --- a/google/cloud/osconfig/agentendpoint/v1/agentendpoint_grpc_service_config.json +++ b/google/cloud/osconfig/agentendpoint/v1/agentendpoint_grpc_service_config.json @@ -7,17 +7,28 @@ "initialBackoff": "1s", "maxBackoff": "60s", "backoffMultiplier": 1.3, - "retryableStatusCodes": ["UNAVAILABLE", "DEADLINE_EXCEEDED"] + "retryableStatusCodes": ["UNAVAILABLE"] } - }, - { - "name": [ - { "service": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService", "method": "ReceiveTaskNotification" }, - { "service": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService", "method": "StartNextTask" }, - { "service": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService", "method": "ReportTaskProgress" }, - { "service": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService", "method": "ReportTaskComplete" }, - { "service": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService", "method": "RegisterAgent" } - ], - "timeout": "60s" - }] + },{ + "name": [ + { + "service": "google.cloud.osconfig.agentendpoint.v1.AgentEndpointService", + "method": "ReceiveTaskNotification" + } + ], + "timeout": "3600s", + "retryPolicy": { + "maxAttempts": 5, + "initialBackoff": "1s", + "maxBackoff": "60s", + "backoffMultiplier": 1.3, + "retryableStatusCodes": [ + "DEADLINE_EXCEEDED", + "CANCELLED", + "ABORTED", + "INTERNAL", + "UNAVAILABLE" + ] + } + }] }