How do I terminate a process in an infinite loop?

更新时间:
复制 MD 格式

Function Compute handles infinite loops differently depending on whether the loop occurs within a single function or across multiple functions invoking each other.

Single-function infinite loop

If a function enters an infinite loop internally, Function Compute automatically suspends it when the function times out. A timeout error is returned, and no additional fees are incurred.

Recursive infinite loop between functions

If multiple functions invoke each other in a cycle — for example, Function A invokes Function B, and Function B invokes Function A — you can set the concurrency of the looping function to 0 to terminate the invocation.