All Products
Search
Document Center

Function Compute:StatefulAsyncInvocation

Last Updated:Sep 23, 2024
ParameterTypeDescriptionExample
object

The struct of the asynchronous task.

functionNamestring

The name of the function to which the asynchronous task belongs.

functionName
serviceNamestring

The name of the service that contains the function to which the asynchronous task belongs.

serviceName
qualifierstring

The version or alias of the service that contains the function to which the asynchronous task belongs.

LATEST
invocationIdstring

The ID of the asynchronous task.

demo-id
statusstring

The state of the asynchronous task.

  • Enqueued: The asynchronous task is enqueued and is waiting to be executed.
  • Succeeded: The invocation succeeded.
  • Failed: The invocation failed.
  • Running: The invocation is being executed.
  • Stopped: The invocation was 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 the asynchronous invocation. The invocation is discarded and not executed because the specified maximum validity period of messages elapsed.
  • Retrying: The asynchronous task is being retried due to an execution error.
Running
startedTimelong

The start time of the asynchronous task.

1633449590000
endTimelong

The end time of the asynchronous task.

1633449599000
destinationStatusstring

The state of the asynchronous task.

Succeeded
invocationErrorMessagestring

The error message for the failed asynchronous task.

UnhandledInvocationError
invocationPayloadstring

The event triggered by the asynchronous task.

"body"
alreadyRetriedTimeslong

The number of retries if the asynchronous task fails.

3
requestIdstring

The request ID of the asynchronous task.

ABA740D4-********-882707EADC37
instanceIdstring

The ID of the instance that is used to run the asynchronous task.

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

The list of events that trigger the asynchronous task.

StatefulAsyncInvocationEvent

The event that triggers the asynchronous task.

durationMslong

The execution duration of the asynchronous task.

100
returnPayloadstring

The result returned by the asynchronous task. The size limit is 1 MB.
This field is in public beta. If you want to use this field, contact us.

my-result