Support Forums

Increase Netlify Function timeout

Sitename: maintainer-ui under org Flossbank

We need to increase the timeout of our netlify functions beyond the 10 seconds that seems to be the limit. I noticed another answer where you all just modified it for the customer Request to increase functions timeout for API processes

we’d like to be able to configure this, is there a way to do that? maybe in a .toml config or is there a UI setting I couldn’t find?

we have many sites we’d like to do this for in case of long running API calls

thank you!

hi there flossbank, we’d be happy to upgrade you to a 26 sec timeout, but we do have a requirement for a Pro account or higher for us to make this change.

If you’d still like us to proceed, please do let us know when you have upgraded, and we can make the appropriate change!

Hi Perry! We’re OSS and will be trying to qualify for the Open Source Plan Policy Open Source Plan so i’ll keep you posted and then hopefully you can help us up the timeout. Thanks!

hi there,

sounds good. Just let us know when you have been approved and we can make the change!

Hi Perry! We are pro account now and would like to up our function timeout as much as possible, thank you!

Sure thing, have just updated your account-wide timeout to our max of 26 seconds.

This change will be applied to all sites, but note that the change is only activated, in case you change the code in some function, and successfully deploy that update - for each site. (So right now, none of your functions are yet using the new timeout).

Sites you create going forward will start out with all functions at that timeout.

Does a manual deploy work to empty the timeout cache?

There is no cache; but when functions are deployed the timeout is set. So it requires a redeploy of the functions, which will use the new setting.

But, yes, a manual deploy (if it has your functions in it, and as I mentioned, they are NOT identical to what they used to be codewise - on disk, the checksum must be different) will pick up those new settings for its functions, assuming it meets the conditions I mentioned :slight_smile: