Skip to main content

Overview

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.

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:
ColumnDescription
Task IDThe unique identifier of the task, which is the Task ID returned by the asynchronous call.
StatusThe execution status of the task. For the possible values, see Task statuses.
InputThe request content of the task, displayed in JSON format.
OutputThe response content of the task, displayed in JSON format. It includes the output text and token usage.
SourceThe type of application that generated the task: agent, workflow, or component.
ChannelThe channel through which the task was initiated. Tasks generated by asynchronous API calls are displayed as API.
Created AtThe time when the task was created.
Updated AtThe time when the task status last changed.
ActionsClick Details to view the complete input and output of the task.

Features

FeatureDescription
SearchEnter a Task ID in the search box above the list to find the task.
ResetClear the search condition.
DetailsView the complete input and output of the task.

Task statuses

StatusDescription
In progressThe task is created but has not finished. Internal states such as unscheduled, scheduled, executing, and waiting are all displayed as in progress.
SucceededThe task finished. View the result in the Output column or on the details page.
FailedThe task encountered an error. View the error message in the Output column or on the details page.
CanceledThe task was canceled. Tasks canceled through the API are displayed with this status.
StoppedThe task was stopped.
DeletedThe task was deleted.