aws-samples / step-functions-workflows-collection

Step Functions Workflows. Learn more at the website: https://serverlessland.com/workflows.
MIT No Attribution
223 stars 120 forks source link

[New Workflow Submission] Common Error Handling Pattern #335

Closed wagneraw closed 11 months ago

wagneraw commented 11 months ago

This pattern shows how to use a common error reporting task within a Step Function. People often want to use a single common error reporting task within their Step Function so that they don't have to duplicate the functionality across many different states. The challenge with this approach is that while that common error reporting task can get the error message from whatever state failed, it doesn't actually get the name of the state that failed. This is a challenge if you have two dozen different Lambda functions, and you're not sure which one caused the error. These example workflows work around this problem in two different ways.

benjasl-stripe commented 11 months ago

merged