Configure a retry mechanism

更新时间:
复制 MD 格式

Function Compute's retry behavior depends on how you invoke your function. Synchronous invocations never retry automatically. Asynchronous invocations retry automatically for certain error types, with configurable behavior and billing implications that vary by error.

Synchronous invocations

Function Compute does not retry failed synchronous invocations. If a synchronous invocation fails, retry from your client code.

Asynchronous invocations

The following table describes how Function Compute handles failed asynchronous invocations.

Error typeRetry behaviorBilledResolution
HandledInvocationError and UnhandledInvocationErrorRetries up to 3 times by default. Adjust the retry count to match your business requirements.Yes — billed per invocation. See Billing overview.Fix the error in your function code.
Concurrency limit exceededRetries for up to 5 hours using exponential backoff. The first retry starts 0.5 seconds after the failure; subsequent intervals double (1 s, 2 s, 4 s, 8 s, …).NoIncrease your concurrency quota in Quota Center. By default, each Alibaba Cloud account can run up to 100 instances per region.
Internal errorNo retryNoContact technical support via DingTalk (group ID: 64970014484).
Insufficient Function Compute resourcesNo retryNo

What's next

  • Contact us if you encounter problems when using Function Compute.