All Products
Search
Document Center

Function Compute:AsyncTask

Last Updated:Aug 27, 2026

Parameter

Type

Description

Example

object

Asynchronous task information.

alreadyRetriedTimes

integer

The number of retries after the asynchronous task fails.

3

destinationStatus

string

The final state of the asynchronous task.

Succeeded

durationMs

integer

The execution duration of the asynchronous task.

1000

endTime

integer

The end time of the asynchronous task. Unit: milliseconds.

1633449590000

events

array

The events of the asynchronous task.

AsyncTaskEvent

The event of the asynchronous task.

functionArn

string

The Alibaba Cloud Resource Name (ARN) of the function.

acs:fc:cn-shanghai:1234/functions/my-func

instanceId

string

The instance ID of the asynchronous task.

D4-*******9FD1-882707E

qualifier

string

The version or alias of the function.

prod

requestId

string

The request ID of the asynchronous task.

e026ae92-61e5-472f-b32d-1c9e3c4e****

returnPayload

string

The response payload after asynchronous task execution. Maximum size: 1 MB. This parameter is in public preview. To use it, contact us.

result

startedTime

integer

The start time of the asynchronous task. Unit: milliseconds.

1633449590000

status

string

The state of the asynchronous task.

  • Enqueued: The asynchronous invocation is enqueued and waiting to be executed.

  • Succeeded: The invocation is successful.

  • Failed: The invocation fails.

  • Running: The invocation is being executed.

  • Stopped: The invocation is terminated.

  • Stopping: The invocation is being terminated.

  • Invalid: The invocation is invalid and was not executed due to specific reasons, such as function deletion.

  • Expired: The invocation was discarded because it exceeded the maximum message validity period configured for asynchronous invocation.

  • Retrying: The asynchronous invocation is being retried due to an execution error.

Running

taskErrorMessage

string

The error message returned when the asynchronous task fails.

UnhandledInvocationError

taskId

string

The ID of the asynchronous task.

e026ae92-61e5-472f-b32d-1c9e3c4e****

taskPayload

string

The input payload of the asynchronous task.

body