Quantcast
Channel: Active questions tagged retry-logic - Stack Overflow
Browsing all 950 articles
Browse latest View live

Rollback during Dataload Failure ADF

Today we had an error on STAGE when receiving an order - due to a “lost connection”.My idea was then to set this “repeat” to 3:Please see the screenshotNow the question is, what happens if it has...

View Article


spring-kafka 2.7.0 | Using @RetryableTopic causing listener to go into...

spring-kafka 2.7.0Using @RetryableTopic causing listener to go into infinite loop when exception occursRetry logic is working as it should. But they seem to be reading the same message infinitely while...

View Article


I want to add retry logic and. refactor the code in the python socket connect...

I have the below Python code which checks whether the ssh host is up or not:`for hostname ,ipaddr in host_dict.items(): if tcp_conn.tcp_port_is_open(ipaddr, constants.TCP_PORT, constants.TCP_TIMEOUT)...

View Article

How to configure two cucumber runner files in jenkins file

As we know when any feature file failed we are storing in a text file. To run that failed.txt file we are using 2nd runner file. If we run second runner file it is executing the failed one only.Is...

View Article

DefaultErrorHandler to handle timeout exception for Kafka consumer

I am facing timeout exception due to various reasons with my Spring Kafka consumer. I am using the following configs to define my consumer factory with error handler.@Bean public...

View Article


Retry sending blank parameters for HTTP Post Request

When our retry code executes, it does a http post request passing in a parameter body.The parameter body has data in it during debugging.However, the http request content is blank, thus sending the...

View Article

Custom backoffs in nestjs bullmq

I want to set the custom backoff for my queue in nestjs.BullModule.registerQueue({ name: POST_QUEUES.PARSE_POST_QUEUE, defaultJobOptions: { backoff: { type: 'exponential', delay:...

View Article

How do I implement retries for WCF clients?

I have a C# client implementing System.ServiceModel.ClientBase<TChannel> for communication with a SOAP API.I want the client to automatically retry requests when timeouts occur.I figure I could...

View Article


Using Polly v8 and RestSharp, how would I build a Generic ResiliencePipeline...

I have an API client class built using _client = new RestSharp.RestClient(...); with methods of this form:public async Task<TResponse> PostAsync<TRequest, TResponse>(string resource,...

View Article


Migration from Polly to Microsoft.Extensions.Http.Resilience - Extend...

I want to migrate from Polly to the Microsoft.Extensions.Http.ResilienceAddStandardResilienceHandler. My shortened Polly code is the following:services.AddHttpClient<MyService>()...

View Article

Spring Retry using .retryOn and .notRetryOn

I am trying to execute the spring retry functionality in a certain code base using the imperative style. I want to retry only on RuntimeException, but not on NullPointerException. NullPointerException...

View Article

Does my design violate the Liskov Substitution Principle?

I'm working on a Spring Boot application with the following structure for sending messagespublic interface MessageService { void send(String message);}@Component("SendEmailService")public class...

View Article

Unit test Polly - Check whether the retry policy is triggered on timeout / error

Problem stmt : I have a service which fetches result from graphql sometime due to server issue the service might throw 500 errorSolution: To resolve the above issue I needed to write a retry logic to...

View Article


Using .NET8, on a "HttpIOException: The response ended prematurely", how can...

developing a .Net8 application and currently having a need to perform http request retries when the connection ended prematurely (see ResponseEnded here)...I wonder if I can use resilience mechanism...

View Article

Why is Task.Delay(1) necessary to advance clock when unit testing with .NET...

I have configured a retry based pipeline with Polly.// Using Polly for retry logicprivate readonly ResiliencePipeline _retryPipeline = new ResiliencePipelineBuilder { TimeProvider = timeProvider }...

View Article


optimising retry count in an application [closed]

I have an application that for various reasons has to do quite a large number of retries before a particular http request completes successfully. However the number of successful completes reduces...

View Article

How to test whether Retry Configuration is Working or not in Google Cloud...

I have Configured Retry Configuration for google cloud storage operations@Beanpublic Storage getGCSClient() { logger.debug("Creating GCSClient for Project {}", gcsProjectId); RetrySettings...

View Article


DefaultErrorHandler is not configurable If @RetryableTopic used for retry and...

Spring boot version : 2.7.6Spring kafka version : 2.8.11Issue:I was trying to handle the deserialization issues in code. To handle such issues in code, I created my own class by...

View Article

How to Set Up Step Execution with Custom Retries in Acidic Jobs (Rails)

I'm transitioning from using Sidekiq to Acidic Jobs in my Rails application. I'm relatively new to Acidic Jobs and would appreciate some guidance on setting up step execution for my jobs.Specifically,...

View Article

The stream was already consumed. It cannot be read again error using Polly to...

I read this 'Stream was already consumed' error using Polly to retry requests in ASP.NET Core but cannot see where to clone the http request message.So in my code, I register httpclient like:var...

View Article
Browsing all 950 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>