grpc-swift icon indicating copy to clipboard operation
grpc-swift copied to clipboard

Is there a way to specify retryableStatusCodes?

Open callumboddy opened this issue 2 years ago • 1 comments

What are you trying to achieve?

We are looking to implement a retry policy on GPRCStatus codes for.resourceExhausted status'. Looking at the Android implementation, they have a settable retryableStatusCodes in their https://github.com/grpc/grpc-java/blob/48192db68e67f40a1f698e3f5bd63ca457398fbd/core/src/main/java/io/grpc/internal/RetryPolicy.java#L39 which allows them to specify this on their configuration.

Is there a recommended implementation for this in grpc-swift?

callumboddy avatar Jun 16 '23 14:06 callumboddy

Not at the moment I'm afraid. You'll need to either handle retries manually at the call site or do it via an interceptor.

glbrntt avatar Jun 19 '23 09:06 glbrntt