The documentation says that the maximum timeout for functions is 15 minutes, but it's not possible to change the 3 seconds timeout (which is very small)