Skip to content

Instantly share code, notes, and snippets.

@SemantiveCode
Created October 31, 2018 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SemantiveCode/b03c7671e85f36df33076035f2c2f09b to your computer and use it in GitHub Desktop.
Save SemantiveCode/b03c7671e85f36df33076035f2c2f09b to your computer and use it in GitHub Desktop.
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