tencent cloud

Smart Media Hosting

Asynchronous Processing

PDF
Modo Foco
Tamanho da Fonte
Última atualização: 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()
}


Ajuda e Suporte

Esta página foi útil?

comentários