-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add mock invocation function to the workflow. Update the InvokeCspApi task to retry when a custom 500 erorr is thrown and catch for all other errors. This simplifies and allows for the task to handle retries based on the error thrown in the lambda. It also allows for additional tasks to be chained after the choice state. If the choice state references a state/task that already has a next state (e.g., InvokeCspApi task), there is an error and '.afterwards()' cannot be used to chain additional tasks. I believe this is a limitation seen when forming sfn with CDK, rather than the sfn itself. Ticket: AT-7055
- Loading branch information
1 parent
cf5bf91
commit 831c422
Showing
3 changed files
with
16 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters