Scheduler trigger timeout issue

I have a schedule trigger function which executes every 5 minute, in which i am moving issues across multiple sprints, but it is timing out in 25 seconds, which leaving the processing incomplete. How I can mitigate this?

You could utilize Async Events to spawn function invocations for up to 15 minutes: https://developer.atlassian.com/platform/forge/runtime-reference/async-events-api/

You could either do this straight away from the scheduled trigger or only as a fallback if you are getting close to the 25s limit.

Thanks @AleksanderMierzwick1 , will try this.