Created
October 31, 2018 11:02
-
-
Save SemantiveCode/b03c7671e85f36df33076035f2c2f09b to your computer and use it in GitHub Desktop.
Async Execution - send failure
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
def handler(event, context): | |
task_token = event['task_token'] | |
error_info = event['error_info'] | |
states_client.send_task_failure( | |
taskToken=task_token, | |
error=error_info['Error'], | |
cause=error_info.get('Cause', 'Cause is undefined.'), | |
) | |
return event |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment