apps/docs/content/troubleshooting/edge-function-cpu-limits.mdx
Learn how Edge Functions manage CPU resources and what happens when limits are reached.
An isolate is like a worker that can handle multiple requests for a function. It works until a time limit of 400 seconds is reached. Edge Functions use isolates with soft and hard CPU limits.
When the isolate hits the soft limit, it retires. This means:
If there are new requests after the soft limit is reached:
When your function exceeds CPU limits, you may see:
CPUTime shutdown reasonIdentify CPU-intensive sections in your function: