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

Image may be NSFW.
Clik here to view.

ZEHビルダーに登録されました!

H28年度「ネット・ゼロ・エネルギー・ハウス支援事業(ZEH)」について 第1回ZEHビルダーに登録されました!   これはゼロエネルギー住宅に125万円の補助金が出るものなんですが、 申請ができるのはZEH(ゼロエネルギー住宅)を建てられる会社だけです。   東京都や葛飾区の会社で登録されている会社もまだ少ないと思います。...

View Article


Is it safe to rely on SqlConnection retry logic while using SqlCommand?

I was using Microsoft.Practice.TransientFaultHandling block for retry logic. Now I switched my application to .Net 4.8 and use the new build in retry logic for SqlConnection.I was wondering if I need a...

View Article


"retry" decorator from Tenacity doesn't work with a generator

It seems the @retry decorator does not seem to work when I use a generator.I have a code sample to illustrate my situation:from tenacity import retry,...

View Article

How can I suppress Execution Attempt log when using Polly V8...

In a .NET 8 project I'm using Serilog and Polly V8 and with ResiliencePipelineBuilder, and this log shows always, even if there is no retry:Execution attempt. Source:...

View Article

Calculating delay with exponential backoff

I'm writing my own retry logic with exponential backoff based on Microsoft's sample code on following page:...

View Article


Redelivery does not work for route when problem occurs while checking files...

I worked with SpringBoot with Java 21 ,Apache Camel and connection with sftp.I have a problem with calling re-delivery when I have a connection problem, I think. I have several sftp configurations....

View Article

Retry function in Python [duplicate]

Some time ago, I was in need of a retry function in R to handle slow servers response. The function would have the following behavior : (try an action (function or method), and if it fails, wait a bit...

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


TestNG testng-failed.xml 'invocation-numbers' values are not calculated...

In one of our Java project we use TestNG's dataprovider and retry mechanism quite a lot. We came accross a weird behaviour and can't decide whether it is a bug, or expected behaviour of TestNG.In...

View Article


Retry Logic - retry whole class if one tests fails - selenium

Following are the classes used to implement retry logicTestRetry Class:public class TestRetry implements IRetryAnalyzer { int counter=0; int retryLimit=2; @Override public boolean retry(ITestResult...

View Article

How to get Google Cloud Storage SDK for Node.js to automatically retry, and...

I'm using the Google Cloud Storage SDK for Node.js, and I'm trying to configure its automatic retries. I just watched a simple GET request fail with no retries, so I'm wondering what I could be doing...

View Article

What HTTP status code to return from a microservice when a required...

Consider a software system that consists of multiple web services (perhaps microservices) communicating with one another. In the course of a certain use case, a client sends a POST web request to an...

View Article

How to institute logging from Poly ResiliencePipeline for success after failure

In C# I'm using Polly Version=8.4.1 and a reusable retry ResiliencePipeline via ResiliencePipelineBuilder. return new ResiliencePipelineBuilder() .AddRetry(new RetryStrategyOptions { MaxRetryAttempts =...

View Article


MicrosoftSqlAzureExecutionStrategy derived class: retry number varies

I'm using .Net 4.8 and EF6.5 with Microsoft.Data.SqlClient. I want to manage retries for my SQL Azure WinForms app.I have a class derived from MicrosoftSqlAzureExecutionStrategy to log the retries and...

View Article

Airflow DAG to retry if any of the Airflow Tasks fails

Would like to ask a Airflow question , currently when we set on the DAG default args to retry 5 timesif failure happens default_args = {'owner': 'testing','retries': 5,'retry_delay':...

View Article


Retry strategy with exponential timeout

I use Polly to retry HTTP Requests. The following code works fine:IAsyncPolicy<HttpResponseMessage> waitTimeout = Policy.TimeoutAsync<HttpResponseMessage>(TimeSpan.FromSeconds(5));// Retry...

View Article

Cypress: How to retry entire test suite?

GoalBe able to perform multiple retries of an entire test suite until all tests succeed.Instead of configuring retries allowed for every test within a test suite, as defined by Configure Test Retries:...

View Article


Unit testing a stream being retried

I've written a stream that calls the foobarMethod, potentially triggering the mono of a SocketTimeoutException. I want this method to retry 2 times. Manually, this code works but in the junit test I...

View Article

How to configure the Rate Limiter of the StandardResilienceHandler

I'm writing an application that connects to another HTTP service. I want to rate-limit my outgoing requests to that external service.Ideally, I want to use the standard resilience handler as documented...

View Article

How to do retries in Kotlin, with timeout durations and maximum retry...

The codebase I'm working with already has a way of defining retry limits through annotations, e.g.@Retry( retryInterval = 60)fun doSomething(args: ...)However the retry parameters need to be specified...

View Article
Browsing all 950 articles
Browse latest View live


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