Querying the Status of a Dataset Import Task
Obtain the status and details of a dataset import task based on the task ID.
dataset.get_import_task_info(task_id)
Sample Code
from modelarts.session import Session from modelarts.dataset import Dataset session = Session() dataset = Dataset(session, dataset_id) task_info = dataset.get_import_task_info(task_id="r4R52nJ4VJKcivuioCU") print(task_info) # Print the detailed information about the import task.
Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
task_id |
Yes |
String |
ID of an import task |
Last Article: Creating a Dataset Import Task
Next Article: Managing Export Tasks
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.