Questions tagged [retry-logic]

Programming techniques designed to retry operations that failed due to error codes, exceptions, or other language specific means.

377 questions
0
votes
1 answer

I want to retry test cases that throw Null point exception only , is there any way to do that?

When I give the retry method to some selected test cases, all such test cases will retry for the given amount of times, but I want to retry test cases only if there is a NUll Point exception, is there any way to do it with testNG?
0
votes
1 answer

RetryContext is not updated to exhausted=true, on reaching maxAttempts

Is there a bug in the spring-retry using retryTemplate ? I see that after the maxAttempts are reached, the retryContext should be updated to exhausted=true, but I still see it false as seen in the log below in my recovery…
0
votes
1 answer

Is there any way to edit the retry count for Sidekiq job?

I am in middle of running a sidekiq job and let's say for some reason an error occurs. For that particular error we don't want to update the retry_count of the sidekiq job but want to trigger the retry. Is there any particular way to do it?. I tried…
Amit Singh
  • 135
  • 1
  • 1
  • 8
0
votes
1 answer

Apache-Spark: Retry on different executor

I'm in an organization where Hadoop/Spark is available, but I can't alter its configuration and can't access it either. So, as a client code, I was wondering if I can ask Spark to retry failing tasks on a different executor if it's not already the…
tomoyo255
  • 153
  • 1
  • 8
0
votes
1 answer

How Client Side Timeout helps with Server resource exhaustion

I was going through following document published by Amazon regarding "Timeout, Retry and Jitter": https://d1.awsstatic.com/builderslibrary/pdfs/timeouts-retries-and-backoff-with-jitter.pdf While reading the document, I found the following text When…
Tarun
  • 3,162
  • 3
  • 29
  • 45
0
votes
0 answers

Spring boot rest api retry logic to third party api

We have one rest API, when we call it. It makes another third party rest API call. So if third part gives failed response, then we need to retry based on configuration count and if the error code matches with configured error code in yml. I am…
ashu
  • 579
  • 2
  • 6
  • 17
0
votes
2 answers

How can I check whether my page is fully loaded in selenium c#

I need to check whether my page is fully loaded using selenium c# and not using TestNG. If my page is not loaded, then I don't want my test to fail. I want my test to retry the same test case. I am using MSTest and not Nunit. Any help is much…
Neema
  • 3
  • 2
0
votes
1 answer

Using an ILogger in a Polly Policy attached to a Refit Client

I've been trying to follow the directions from this blog post to pass an ILogger to my retry policy in order to log information about the errors being retried. The code in the blog doesn't work out of the box as we're using Refit for client…
Bob Kinney
  • 8,870
  • 1
  • 27
  • 35
0
votes
1 answer

Java 11 Completable Future retry on a custom condition and not on exception

I have a completable future defined below CompletableFuture personFutures = personService.getPersons(); Now, based on a particular condition, I need to check and do the call to getPersons until the condition is matched or the number of…
spartan712
  • 37
  • 5
0
votes
1 answer

Powershell script skipping some users

I have the following script that should run through all identities from Sailpoint IdentityIQ, and remove the membership, but it randomly don't affect users, we saw in the logs that it process one user correctly and then the next one starts but the…
jmpg85
  • 15
  • 4
0
votes
2 answers

functional programming with coroutines python

I have async call, for example from httpx import AsyncClient, Response client = AsyncClient() my_call = client.get(f"{HOST}/api/my_method") # async call And I want to pass it to some retry logic like async def retry_http(http_call): count =…
Ryabchenko Alexander
  • 10,057
  • 7
  • 56
  • 88
0
votes
2 answers

azure function unit test cases for retry scenario - nodejs

I have built an azure function using NodeJs. And I am Using Jest for testing. Scenario: When making API calls from function, if the 3rd party returns Timeout, I need to retry 1 more time and then quit. This is working fine when live and server is…
Sharath Jallu
  • 143
  • 1
  • 8
0
votes
1 answer

How to retry python requests.get without using sessions

I want to retry the python requests.get(). I know we can do it with sessions but in a specific case I need to retry the requests.get() only so I wanted to know how do that? Is there any parameter like in session that we can pass?
Captain
  • 123
  • 4
  • 11
0
votes
1 answer

How to handle a network mapping with retry and looping in powershell?

I would like to mapping a network. I need to use retry if the mapping fail. After maximum retry it will fail out and continue to another process. If the mapping pass, then continue to another process too. I've tried this way, but seems the retry is…
Cheries
  • 834
  • 1
  • 13
  • 32
0
votes
1 answer

How to trigger retry requests on Jmeter5.3

I have updated hc.parameters file with httpclient4.retrycount and httpclient4.request_sent_retry_enabled to true and uncommented hc.parameters in jmeter.properties file. I would like to do retries for failed requests getting 500, do I need to have…
Saran123
  • 3
  • 1