首页 Function Compute Function Compute FAQ Function instances Why does my asynchronous code fail to run in Function Compute?

Why does my asynchronous code fail to run in Function Compute?

更新时间: 2026-04-01 02:21:33

Possible causes

When a function returns a response and no request is being executed, Function Compute freezes the function instance and suspends code execution. The suspended code does not resume until the instance is unfrozen when the next request arrives.

Solution

Add logic to wait for asynchronous code to finish before the function returns a response.

上一篇: Considering that the upper limit of instances for each user in a region is 100, can a service process more than 100 requests per second? 下一篇: How do I create a new instance for each request?
阿里云首页 函数计算 相关技术圈