Skip to content

Send Task Success

sfn_send_task_success R Documentation

Used by activity workers, Task states using the callback pattern, and optionally Task states using the job run pattern to report that the task identified by the taskToken completed successfully

Description

Used by activity workers, Task states using the callback pattern, and optionally Task states using the job run pattern to report that the task identified by the taskToken completed successfully.

Usage

sfn_send_task_success(taskToken, output)

Arguments

taskToken

[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.

output

[required] The JSON output of the task. Length constraints apply to the payload size, and are expressed as bytes in UTF-8 encoding.

Value

An empty list.

Request syntax

svc$send_task_success(
  taskToken = "string",
  output = "string"
)