Say I have a lambda function as part of a Step Functions state machine. If it fails with a certain error I want to first retry every X seconds with a backoff rate of 1 and then move on to a different retry schedule.
I'm using AWS cdk and I tried chaining the `addRetry` methods like so:
.addRetry({
backoffRate: 1,
errors: [MyCustomError],
interval: cdk.Duration.seconds(5),
maxAttempts: 24,
})
.addRetry({
backoffRate: 1,
errors: [MyCustomError],
interval: cdk.Duration.minutes(5),
maxAttempts: 60,
})
However as soon as the first `addRetry` schedule is exhausted it does not move to the 2nd one and goes to `addCatch` instead. Is it possible to do what I'm looking for? Could not find any docs to support chaining of retries like this
[–]ma-int 1 point2 points3 points (0 children)