Help Center/ ModelArts/ SDK Reference/ Data Management/ Managing Export Tasks/ Querying the Status of a Dataset Export Task
Updated on 2022-11-24 GMT+08:00

Querying the Status of a Dataset Export Task

Obtain the status and details of a dataset export task based on the task ID.

dataset.get_export_task_info(task_id)

Sample Code

Obtain the status of a dataset export task.
from modelarts.session import Session
from modelarts.dataset import Dataset
session = Session()

dataset = Dataset(session, dataset_id)
task_info = dataset.get_export_task_info(task_id="iuHALF6xdkSAGKVN2jD")
print(task_info) # Print the detailed information about the export task.

Parameters

Table 1 Request parameters

Parameter

Mandatory

Type

Description

task_id

Yes

String

ID of an export task