set_task_status
(**kwargs)¶Task runners call SetTaskStatus
to notify AWS Data Pipeline that a task is completed and provide information about the final status. A task runner makes this call regardless of whether the task was sucessful. A task runner does not need to call SetTaskStatus
for tasks that are canceled by the web service during a call to ReportTaskProgress.
See also: AWS API Documentation
Request Syntax
response = client.set_task_status(
taskId='string',
taskStatus='FINISHED'|'FAILED'|'FALSE',
errorId='string',
errorMessage='string',
errorStackTrace='string'
)
[REQUIRED]
The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
[REQUIRED]
If FINISHED
, the task successfully completed. If FAILED
, the task ended unsuccessfully. Preconditions use false.
dict
Response Syntax
{}
Response Structure
(dict) --
Contains the output of SetTaskStatus.
Exceptions
DataPipeline.Client.exceptions.InternalServiceError
DataPipeline.Client.exceptions.TaskNotFoundException
DataPipeline.Client.exceptions.InvalidRequestException
DataPipeline.Client.exceptions.PipelineNotFoundException
DataPipeline.Client.exceptions.PipelineDeletedException