Skip to content

Commit

Permalink
chore(stepfunctions-tasks): add missing braces (#10406)
Browse files Browse the repository at this point in the history
Add missing braces around `if` added in #10386


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
jogold authored Sep 17, 2020
1 parent bedd4c0 commit 483e319
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,15 @@ export class LambdaInvoke extends sfn.TaskStateBase {
}),
];

if (props.retryOnServiceExceptions ?? true)
if (props.retryOnServiceExceptions ?? true) {
// Best practice from https://docs.aws.amazon.com/step-functions/latest/dg/bp-lambda-serviceexception.html
this.addRetry({
errors: ['Lambda.ServiceException', 'Lambda.AWSLambdaException', 'Lambda.SdkClientException'],
interval: cdk.Duration.seconds(2),
maxAttempts: 6,
backoffRate: 2,
});
}
}

/**
Expand Down

0 comments on commit 483e319

Please sign in to comment.