Vineet Gupta
Vineet Gupta

Reputation: 51

If a parallel branch fails in aws step function, then how can i revert the changes of other branch that is done

I have a aws step function workflow and in that i have a parallel task which executes 3 tasks "A","B" and "C" all are running in parallel , then "A" successfully completes it's executeion, "B" and "C" both are still running then if "B" fails , then how can i revert changes of "A" and of "C"(which run partially.).

Upvotes: 0

Views: 1076

Answers (1)

someguy
someguy

Reputation: 11

As @Riz mentioned, Step Functions does not have any built in rollback options. One option will be for your parallel state to have a catch which will catch if A B or C fail. If it does, the catch will direct to a cleanup/rollback step within your state machine.

Upvotes: 1

Related Questions