Exceeding time limit error in Forge platform - seeking community advice

Hello Atlassian Developer community,

I’m encountering an error message that says ‘Function result will not be returned to the Forge platform, as the function did not complete within 25 seconds. In invocations outside tunnel, functions that exceed the time limit are terminated.’

I’m not sure how to fix this issue, and I was hoping someone in the community might be able to offer some guidance. Has anyone else encountered this error before, and if so, how did you go about resolving it? Any help or advice would be greatly appreciated.

Thank you!

Hi @SarraMEHREZ ,

Forge functions are time-limited to 25 seconds, so you have to make sure your code completes within this time. Can you please elaborate on what your code is doing?

What we recommend for long-running tasks is to split them up into several small workers and place them on the Async Queue to be run later. See: https://developer.atlassian.com/platform/forge/runtime-reference/async-events-api/

1 Like