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();