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) } } } } }

## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request ## License MIT License. Copyright 2018 Noah Pepper. http://noahcs.com

Questions about programming?Chat with your personal AI assistant