set_task_status
async
¶
set_task_status(
task_id: taskId,
task_status: TaskStatus,
*,
config_overrides: Optional[AsyncDataPipelineClientConfig] = None,
error_id: Optional[string] = None,
error_message: Optional[errorMessage] = None,
error_stack_trace: Optional[string] = None,
) -> SetTaskStatusOutput
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.
Parameters:
-
task_id(taskId) –The ID of the task assigned to the task runner. This value is provided in the response for PollForTask.
-
task_status(TaskStatus) –If
FINISHED, the task successfully completed. IfFAILED, the task ended unsuccessfully. Preconditions use false. -
error_id(Optional[string], default:None) –If an error occurred during the task, this value specifies the error code. This value is set on the physical attempt object. It is used to display error information to the user. It should not start with string "Service_" which is reserved by the system.
-
error_message(Optional[errorMessage], default:None) –If an error occurred during the task, this value specifies a text description of the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
-
error_stack_trace(Optional[string], default:None) –If an error occurred during the task, this value specifies the stack trace associated with the error. This value is set on the physical attempt object. It is used to display error information to the user. The web service does not parse this value.
Raises:
-
InternalServiceError–An internal service error occurred.
-
InvalidRequestException–The request was not valid. Verify that your request was properly formatted, that the signature was generated with the correct credentials, and that you haven't exceeded any of the service limits for your account.
-
PipelineDeletedException–The specified pipeline has been deleted.
-
PipelineNotFoundException–The specified pipeline was not found. Verify that you used the correct user and account identifiers.
-
TaskNotFoundException–The specified task was not found.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_data_pipeline/_services/async_data_pipeline.py
1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 | |