send_task_failure

SFN.Client.send_task_failure(**kwargs)

Used by activity workers and task states using the callback pattern to report that the task identified by the taskToken failed.

See also: AWS API Documentation

Request Syntax

response = client.send_task_failure(
    taskToken='string',
    error='string',
    cause='string'
)
Parameters
  • taskToken (string) --

    [REQUIRED]

    The token that represents this task. Task tokens are generated by Step Functions when tasks are assigned to a worker, or in the context object when a workflow enters a task state. See GetActivityTaskOutput$taskToken.

  • error (string) -- The error code of the failure.
  • cause (string) -- A more detailed explanation of the cause of the failure.
Return type

dict

Returns

Response Syntax

{}

Response Structure

  • (dict) --

Exceptions

  • SFN.Client.exceptions.TaskDoesNotExist
  • SFN.Client.exceptions.InvalidToken
  • SFN.Client.exceptions.TaskTimedOut