I have an action backed by a function, with the function configured to timeout at the maximum allowed. The purpose of the function is to batch process objects based on an input offset and batch size. I initially set the batch size to 50 and saw a timeout at 30 seconds, which should not occur. After reviewing the performance, the function was stopped after processing 29 objects. To troubleshoot, I reduced the batch size to 25 and still the function times out after 30 seconds. Has anyone experienced this? I have explicitly configured the timeout for 280 seconds.
Are you able to send the function code and deets on the object type?
Hi @isaiahxcruz,
this has been asked before:
Extending timeout for typescript function - Ask the Community - Palantir Developer Community
there is no current way to extend the timeout beyond the 60 second of total runtime.
As stated in the docs: Functions ⢠Overview ⢠Palantir
Serverless Function timeout
Currently, each serverless Function is allocated a total of 60 seconds of wall time to run. This includes 30 seconds of CPU time and a 30-second buffer for any network delays. The Function will fail if the timeout is exceeded.
Deployed Function timeout
Currently, each deployed Function is allocated a total of 60 seconds of wall time to run. The Function will fail if the timeout is exceeded.
As @Hashir was mentioning, any additional information you can share about the intended logic / use case could help. Maybe code optimization is required?
Hello @sboari , palantir has recently introduced configuration for functions. Allowing users to configure the timeout to a maximum of 280 seconds.
I cannot share the function code or details of object type as the information is confidential.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
This looks super helpful. Could you please guide me on where exactly to find the runtime configuration option for functions in Foundry? Iām not seeing this in the UI and would appreciate any directions or screenshots if possible.