Inside a certain function I want to stop the whole Lambda process but not trigger an error. I've tried looking at the context variable to stop it or just calling exit() but each time it's treated as an error which I don't want to track.
How can I end successfully a Lambda process in Python?
exit()and it logsProcess exited before completing requestand logs it as an errorexit()like that you are killing everything instead of returning from your function like the Lambda server expects. In other words,exit()is always going to result in that error message. You need to return from your function instead.