View and manage the execution status and results of asynchronous API calls
The Task Center is used to manage background tasks generated when applications are invoked asynchronously. When you call a workflow application via the API in asynchronous mode, the system returns a Task ID. You can use the Task Center to monitor the execution progress and view the final result of that task.
The task list contains the following columns:
Workflow
1
Build an Application
Create and publish a workflow application in Application Management.
2
Create an Asynchronous Task
Invoke the application asynchronously via the API; the system returns a Task ID.
3
Query Asynchronous Results
Use the Task Center or the API to query the execution status and output result associated with the Task ID.
Task list
The task list contains the following columns:
| Column | Description |
|---|---|
| Task ID | The unique identifier of the task, which is the Task ID returned by the asynchronous call. |
| Status | The execution status of the task. For the possible values, see Task statuses. |
| Input | The request content of the task, displayed in JSON format. |
| Output | The response content of the task, displayed in JSON format. It includes the output text and token usage. |
| Source | The type of application that generated the task: agent, workflow, or component. |
| Channel | The channel through which the task was initiated. Tasks generated by asynchronous API calls are displayed as API. |
| Created At | The time when the task was created. |
| Updated At | The time when the task status last changed. |
| Actions | Click Details to view the complete input and output of the task. |
Features
| Feature | Description |
|---|---|
| Search | Enter a Task ID in the search box above the list to find the task. |
| Reset | Clear the search condition. |
| Details | View the complete input and output of the task. |
Task statuses
| Status | Description |
|---|---|
| In progress | The task is created but has not finished. Internal states such as unscheduled, scheduled, executing, and waiting are all displayed as in progress. |
| Succeeded | The task finished. View the result in the Output column or on the details page. |
| Failed | The task encountered an error. View the error message in the Output column or on the details page. |
| Canceled | The task was canceled. Tasks canceled through the API are displayed with this status. |
| Stopped | The task was stopped. |
| Deleted | The task was deleted. |