Questions tagged [retry-logic]

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

377 questions
1
vote
2 answers

After a 500 response no requests are sent again until process is restarted

I am using Polly to implement request retries. However, after a 500 response is returned for a request, not only does Polly not send a request when it retries but no requests are sent at all until the process is restarted. Instead Polly just waits…
Alejandro
  • 351
  • 4
  • 11
1
vote
0 answers

Retry after OOME fail when Neo4j procedure called from Neo4j browser but not from cypher-shell

I have Java method deployed into dockerized Neo4j as standard stored procedure in plugin. The method sets new property to all nodes of some label. It fails with OutOfMemoryError since the JVM heap is not appropriately sized for committing everything…
Tomáš Záluský
  • 10,735
  • 2
  • 36
  • 64
1
vote
1 answer

How to log something before retry using Polly?

I'm attempting to log something before retrying a web api call using Polly in a .net core web api. I know the web api is failing and returning a 503 response code however there's nothing in my console log as part of the retry call. Any ideas why and…
Bhav
  • 1,957
  • 7
  • 33
  • 66
1
vote
1 answer

Feign Retry : No converter found capable of converting from type [java.lang.String] to type [java.lang.Class]

I am getting the below error while using feign retryer. I am using io.github.openfeign.feign-core -> v10.10.1 io.github.openfeign.feign-hystrix -> v10.10.1 io.github.openfeign.feign-form -> v3.8.0 Feign Retryer Error - No converter found capable of…
Manuag
  • 35
  • 6
1
vote
1 answer

Implement Retry Functionality for request api in Python without any library

I am trying to build a vaccine availability project. I make a request every 4 seconds to check doses for a vaccine, response = requests.get(https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/calendarByDistrict?district_id=770&date=) At…
1
vote
1 answer

KarateFramework retry using in background

I'm trying to implement retry until the Scenario pass. This code is working in the background or scenario : * retry until response.status == 200 But my scenarios response codes are different like 200,204,404 I want to retry until the scenario pass…
1
vote
5 answers

Keep retrying a function in Golang

I am trying to make a functionality which would work in the following manner: As soon as the service function is called, it uses the Fetch function to get records from a service (which come in the form of byte array), JSON unmarshal the byte array,…
newbietocoding
  • 55
  • 1
  • 1
  • 9
1
vote
2 answers

Enter a Catch Method in WaitAndRetryAsync

Goal: If you have tried the third time and it is not a success. Then you want to use another method. I would like to to prevent displaying a error message webpage. Problem: is it possible to enter a method that is similiar as catch method in…
HelloWorld1
  • 13,688
  • 28
  • 82
  • 145
1
vote
1 answer

Cypress Retries: How to get the retry attempt count in the test

How do we capture the retry count in the it() block? My scenario is: Upon first time login, the user has to change password to get to homescreen and do some checks If the check/test fails, the it() block will be retried, but this time the user…
abdp
  • 317
  • 4
  • 15
1
vote
1 answer

How to capture last trial result in Poly retry policy?

I am working on extending the TestMethod attribute in .NET Core. I am using Polly library for retry logic along with an outer timeout policy. I want a helper method that can retry invoking the ITestMethod until it passes. I don't mind the number of…
Manikanta
  • 73
  • 6
1
vote
1 answer

EventGrid-triggered, Python Azure Function keeps triggering after successfully running?

There are a couple other topics out there, but none with solutions or none pertaining to Python Functions. Background: EventGrid-triggered, Python Azure Function EventGrid messages created only when a blob is uploaded to a given Storage…
ericOnline
  • 1,586
  • 1
  • 19
  • 54
1
vote
2 answers

Why is OperationKey empty in my Polly retry policy?

I'm using Polly version 7.1.1 I have a simple Polly retry policy that will retry an operation once if it fails with an NpgsqlException: var policy = Policy .Handle() .Retry( retryCount: 1, onRetry:…
Marcus
  • 6,697
  • 11
  • 46
  • 89
1
vote
1 answer

C# Polly WaitAndRetry policy for function retry

I'm very new to C# coding and I just want to know how to setup polly WaitAndRetry for my function if it failed. Following is my steps I installed package Install-Package Polly, using NuGet package added using polly in my code. Below is my…
june alex
  • 244
  • 4
  • 17
1
vote
1 answer

WaitRetryForever is not working for a customexception in Polly.Net Resiliency

I have the following Retry and Circuit Breaker policies: var waitAndRetryPolicy = Policy .Handle(e => e is MycustomException) .WaitAndRetryForeverAsync( attempt => TimeSpan.FromMilliseconds(500), (exception,…
Yashwanth Kata
  • 817
  • 8
  • 21
1
vote
1 answer

Ensure Polly Policy Runs at Least Once

So, I'm writing some retry logic for acquiring a lock using Polly. The overall timeout value will be provided by the API caller. I know I can wrap a policy in an overall timeout. However, if the supplied timeout value is too low is there a way I can…
Nick
  • 25,026
  • 7
  • 51
  • 83