Provides the base implementation of the retry mechanism for unreliable actions and transient conditions when accessing Sql Azure.
Questions tagged [retrypolicy]
101 questions
0
votes
1 answer
RetryPolicy on Web Api causes timeout
I have a Web Api that invokes another web api call to get some information. In order to make the app more resilient, I implemented a HttpTransientErrorDetectionStrategy following the steps at:…

Snooks
- 91
- 1
- 11
0
votes
1 answer
Is it possible to change client's BaseAddress or client when using Polly ExecuteAsync after failed attempt?
I have implemented Polly in my solution using .net core 3.1 and Polly 7.2.0. I have created extensions for IServiceCollection and in my Startup file I am calling the extensions to configure and add a client and also to create a policy and and…

Vergil C.
- 1,046
- 2
- 15
- 28
0
votes
2 answers
Java resilience4j Retry policy goes infinite after 2 retries
I am using the resilience4j Retry policy to call the HttpGet request and for testing purposes,
I have set retryOnResult to retry when HttpGet request returns 200 status code.
It successfully retries when maxAttempts is set to 2.
For maxAttempts > 2…

Harsh darji
- 113
- 1
- 1
- 8
0
votes
1 answer
Execute different method recursively when using Polly for retry-policy
I'm new to the Polly for building the retry policy and what I noticed that is, Polly will execute the same method over and over again if it meets specific exception. However, is it possible that Polly could retry with different method recursively?…

Drex
- 3,346
- 9
- 33
- 58
0
votes
0 answers
How to ignore SQL retry policy in unit test?
I have inherited SqlServerRetryingExecutionStrategy from Code sample by Microsoft in GitHub, called MySQLServerRetryPolicy class
I have added a cancellationtoken in ShouldRetryOn overriden method in MySQLServerRetryPolicy, so I could kill the…

Unknown
- 778
- 1
- 7
- 16
0
votes
2 answers
Retry request ends with "Content length mismatch"
My problem goes this way:
I have an Azure APIM, I have created an API and addeded the backend retry policy as below.

Bikram
- 483
- 6
- 16
0
votes
1 answer
Failsafe RetryPolicy - throw exception from supplyAsync
I'm implementing a retry policy. Basically what I want to do is retry a POST request on a separate thread. I'm using Failsafe (https://failsafe.dev/async-execution/#async-integration) Here is my…

imeshU
- 25
- 4
0
votes
1 answer
How to know the retry iteration number in retryPolicy.excute()
I am getting an error "The request message was already sent. Cannot send the same request message multiple times" for multiple retries of the same request. So, as far as I know, I need to recreate a new HttpRequestMessage for the second retry. Is…

SaiGiridhar
- 886
- 1
- 13
- 28
0
votes
1 answer
Grails plugin cxf-client-1.5.4 failover
Downloaded cxf-client-1.5.4 from Maven Repository, does not contain any configuration for fail-over features about retry strategy. However, during heavy load and slowness in production, I observed and suspected from the log that retry is happening.…

Kambiz
- 99
- 1
- 10
0
votes
1 answer
How to configure WebJob ServiceBusTrigger retry policy
Edit: I will accept Azure configuration related changes as an answer to this question.
I am attempting to setup a retry policy to prevent instantly retrying a message when a 3rd party service is temporarily unavailable.
Currently the job is…

Brett Allen
- 5,297
- 5
- 32
- 62
0
votes
1 answer
Retry logic with multiple methods
I am implementing retry logic for WCF services on the client side.
I have multiple operations in WCF service with various input parameters and return types.
I created a wrapper that can make a call to these certain methods that have no return…

Deepak
- 23
- 2
- 7
0
votes
0 answers
Multiple Retry Policies in MassTransit
I am using MassTransit in my application and would like to configure multiple retry policies.
The documentation doesn't mention how they would interact so I hope someone can clarify.
What I want to do is implement secondary retry for some consumers…

frostymarvelous
- 2,786
- 32
- 43
0
votes
1 answer
Volley Request becomes too slow when phone goes to sleep and come back again to Application
I am facing the unidentified issue from several days that volley request becomes too slow when phone goes to sleep mode for some time and then return back to the app,i tried so many Retrypolicies given by volley, but none of them working…

Hari krishna
- 1,142
- 1
- 12
- 29
0
votes
2 answers
Service Bus 1.1 (On Prem) Message Sender Retry Policy Not Working
Not sure what is wrong with my retry policy logic with Service Bus 1.1. We are not able to use Azure service bus. I have tried several different configurations but still no luck getting it to fire. It will just move right to the exception. …

J - Mac
- 21
- 1
- 3
0
votes
0 answers
How to manage retry policy for specific response? (Robospice)
I would like to achieve managing custom retry policy in my application. By default it does 3 retries after requset failure, but I don't want to retry for HTTP 400 responce. How can I do this?

Grecha
- 119
- 1
- 11