Introduction
This document provides an API overview for querying task execution status as well as SDK sample code.
|
| Query task execution status |
Query Job
Feature Overview
Query task execution status.
For specific task returns, see the API description that generates asynchronous tasks. Some APIs may return synchronous or asynchronous results based on task duration. At this point, the asynchronous result usually remains consistent with the synchronous result in format.
Only support query for tasks with end time in the most recent 30 days. Early tasks cannot query.
Poll this API as needed until the task result is queried.
Example Code
try {
val taskIds: List<Long> = listOf()
return query results
val batchResponses: List<BatchResponse> = smh.queryTasks(
taskIds = taskIds
)
} catch (e: Exception) {
e.printStackTrace()
}