All Products
Search
Document Center

Function Compute:AsyncTask

Last Updated:Nov 22, 2024
ParameterTypeDescriptionExample
object

The information about the asynchronous task.

alreadyRetriedTimeslong

The number of retries after the asynchronous task fails.

3
destinationStatusstring

The final state of the asynchronous task.

Succeeded
durationMslong

The execution duration of the asynchronous task.

1000
endTimelong

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

1633449590000
eventsarray

The events of the asynchronous task.

AsyncTaskEvent

The event of the asynchronous task.

functionArnstring

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

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

The ID of the instance that corresponds to the asynchronous task.

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

The version or alias of the function.

prod
requestIdstring

The ID of the request corresponding to this asynchronous task.

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

The content of the response after the asynchronous task is executed. The maximum size is 1 MB. This parameter is in public preview. If you want to use this parameter, contact us.

result
startedTimelong

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

1633449590000
statusstring

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 not executed due to specific reasons. For example, the function is deleted.
  • Expired: The maximum validity period of messages is specified for asynchronous invocation. The invocation is discarded and not executed because the specified maximum validity period of messages expires.
  • Retrying: The asynchronous invocation is being retried due to an execution error.
Running
taskErrorMessagestring

The error message for an asynchronous task failure.

UnhandledInvocationError
taskIdstring

The ID of the asynchronous task.

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

The content of the input parameter during asynchronous task execution.

body