What's the execution limit for a function in Pages?

I have a SvelteKit project that calls a third-party APIs that take a while top process. Netlify has a 10 second execution limit on these synchronous functions.

What is the timeout limit for a Cloudflare Pages equivalent functions?

CPU time limit is 10ms on free or 50ms on paid (or 30s on the new standard model)
Note though that CPU time != wall time. You could spend 10 minutes in your Worker waiting for a third party and not use any CPU time.
There is no wall clock limit.


Wonderful - thank you!
Just tried it out and no timeouts yet. Everything is also running much faster in general.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.