Tasks

更新时间:
复制 MD 格式

Files are processed asynchronously as tasks. When you submit a request, the system returns a task ID that you can use to query the task status. This topic describes how to create and query these asynchronous tasks.

Note

You can access the APIs and SDKs for the data processing features through an IMM service endpoint.

Create a task

  1. Log on to the OSS console.

  2. In the left navigation pane, click Buckets, and then click the destination bucket.

  3. In the left navigation pane, choose Data Processing

  4. Depending on the file type, select Document Processing, Media Processing, or another data processing feature of Intelligent Media Management (IMM).

  5. Click the Task tab, and then click Create task.

  6. In the Create task panel, configure the parameters as described in the following table.

    Parameter

    Description

    Input bucket

    The bucket that contains the files you want to process.

    Input path

    The path to the files that you want to process.

    Style

    Select a processing style for the files. If no styles are available, click Add Style in the drop-down list to create a new one.

    Output path

    The path where the task stores its output files.

    The path cannot end with a forward slash (/). You can use variables in the path. For more information, see the variable section in the related documentation.

    Message queue

    Select an MNS topic. After the task is complete, MNS sends an asynchronous notification with the processing results. For more information, see Quick start overview and Asynchronous notification message format.

  7. Click OK.

Query a task

  1. Log on to the OSS console.

  2. In the left navigation pane, click Buckets, and then click the destination bucket.

  3. In the left navigation pane, choose Data Processing

  4. Depending on the processing type, select Document Processing, Media Processing, or another data processing feature of Intelligent Media Management (IMM).

  5. Click the Task tab to view the task list. Use the paging controls at the bottom of the page to navigate between pages.

    The task list includes the Task ID, Task type, Task status, Creation time, and Action columns. You can search for tasks by task ID or filter them by a date range.

  6. To search for a specific task, enter the task ID in the Task ID search box and click the search icon. You can obtain the task ID from the TaskId field that is returned by the ListTasks API operation. To query tasks within a specific time frame, select a date range using the Start Date and End date filters.

  7. In the Actions column, click Task details to view the task's details.

References

For more information about using the Intelligent Media Management (IMM) SDK, see Overview.