Shreyas arya

Generation

generate functionWed, 08 Feb 2023

When requests to Step Function fail, Workflow Service performs exponential backoff retries to notify Step Function service.

RetryPolicy retryPolicy = new RetryPolicy.RetryPolicyBuilder().withDelayBackoff(Duration.ofSeconds(2), Duration.ofSeconds(30)) .withJitter(0.5) .withMaxRetryAttempts(20) .withMaxAttempts(20) .withInterruptiblePredicate(new Predicate<Throwable>() { @Override public boolean test(Throwable throwable) { return throwable instanceof InterruptedException; } }) .build();

Questions about programming?Chat with your personal AI assistant