I have a long running script that cannot be optimized (API calls to an incredibly slow service). It takes longer than 300 seconds, but in the documentation the maximum timeout is 300 seconds (https://github.com/fnproject/docs/blob/master/fn/develop/func-file.md). I tried putting a higher value but I get an error. Is there anyway to set the timeout for longer than 300 seconds?
Asked
Active
Viewed 64 times
1
-
Please provide enough code so others can better understand or reproduce the problem. – Community Nov 04 '21 at 03:02
1 Answers
1
I found a way to do it. I downloaded the source code from the repository, changed the max timeout in /api/models/fn.go, and used the dockerfile to rebuild the image and that's working fine for me.

Ayyub Omer
- 21
- 2