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.

private static final int DEFAULT_MAX_RETRY = 5; private static final int MAX_RETRY = 10; private static final double BACKOFF_MULTIPLIER = 1.5; private static final long DEFAULT_INITIAL_RETRY_INTERVAL = 1000L; private static final long MAX_RETRY_INTERVAL = 30000L; private static final Logger log = LoggerFactory.getLogger(StepFunctionWorkflowServiceClient.class); private int maxRetry; private double backoffMultiplier; private long initialRetryInterval; private long maxRetryInterval; private final String endpoint; private final String accessKey; private final String secretKey; public StepFunctionWorkflowServiceClient(String endpoint, String accessKey, String secretKey) { this(endpoint, accessKey, secretKey, DEFAULT_INITIAL_RETRY_INTERVAL, MAX_RETRY_INTERVAL, BACKOFF_MULTIPLIER, MAX_RETRY, DEFAULT_MAX_RETRY); } public StepFunction

Questions about programming?Chat with your personal AI assistant