tencent cloud

Smart Media Hosting

Asynchronous Processing

PDF
포커스 모드
폰트 크기
마지막 업데이트 시간: 2026-01-07 11:03:11

Introduction

This document provides an API overview for querying task execution status as well as SDK sample code.
API
Operation Description
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 {
//List of task IDs you want to query
val taskIds: List<Long> = listOf()
return query results
val batchResponses: List<BatchResponse> = smh.queryTasks(
taskIds = taskIds
)
} catch (e: Exception) {
e.printStackTrace()
}


도움말 및 지원

문제 해결에 도움이 되었나요?

피드백