Shreyas arya

Generation

testsTue, 14 Feb 2023

void executeRetryStepFunction(WorkflowExecution execution, String stepFunctionArn) { int retryCounter = 0 while (retryCounter <= MAX_ATTEMPTS) { try { workflowExecutionInitiatorService.addExecuteStepFunction(execution, stepFunctionArn) } catch (e) { log.warn("Received exception " + e.message + ".during the retry step function.") if (retryCounter < MAX_ATTEMPTS) { retryCounter++ Thread.sleep(DELAY_IN_MILLIS) log.warn("Attempting to retry function for. Retry attempt #$retryCounter.") } else { log.warn("Failed on final retry attempt #$retryCounter. Throwing exception.") throw new RetryFailedException(e) } } } } }

To run the unit tests execute following command from the root directory of the project:

Questions about programming?Chat with your personal AI assistant