课程: AWS for Developers: Step Functions

今天就学习课程吧!

今天就开通帐号,24,700 门业界名师课程任您挑!

Challenge: Error handling

Challenge: Error handling

(upbeat music) - [Instructor] Okay, so we have reached our last challenge, and we're going to make it a really interesting one. For the challenge, you're going to use the provided Lambda function that is in your exercise files, and we're going to create a task to call this function. We already have the placeholder that we did, which is the past state at the bottom. We're going to replace that with a call to this Lambda. I want you to add a timeout handler to this particular state because you will need the timeout logic to respond to potential timeout situations. The same can be said about adding a retry logic and catching errors. The part that I haven't told you yet is that this function, I've designed it in such a way that it will generate timeouts and it will generate errors at random. So this function is going to be great because it's actually going to trigger this error handling functionality that we're going to…

内容