Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Async Execution - send failure
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
You can’t perform that action at this time.