Search code examples
javaamazon-web-servicesaws-lambdaaws-step-functions

Aws step functions - Resume from failed step function activity instead of starting a new execution


I created a step function with 4 different activities which run one after other and also integrated to trigger this step function from a java application. Flow looks like this.

Start -> Activity1 -> Activity2 -> Activity3 -> Activity4 -> Stop

When an execution fails during some activity, let's say Activity2, the execution is marked as failure.

Now, is there anyway to resume this failed execution from the activity(Activity2) during which it failed earlier instead of starting a new execution?

I went through the operations which are possible through AWSStepFunctions but none seem to solve this requirement. https://docs.aws.amazon.com/step-functions/latest/apireference/API_Operations.html


Solution

  • AWS Step Functions released support to restart execution from failed state with the help of RedriveExecution API.

    https://docs.aws.amazon.com/step-functions/latest/apireference/API_RedriveExecution.html