Atlassian Forge makes it possible to build a fully-functional app in just a few hours, with hosting, multiple development environments, and API authentication built-in. Forge can be used to build custom apps and integrations or apps distributed through the Atlassian Marketplace.
Due to the nature of the Forge ecosystem, a few limits exist around execution time and resource usage. One of those is the 25 second runtime limit. So - how do we build apps that need to run for longer than 25 seconds?
One solution is to break a long-running task into smaller 25 second blocks. We have published a guide on how to Use Async Events API to queue jobs to import objects into Assets. This example deals with integrating with JSM Assets, but the techniques are relevant to any long-running tasks.
You can find the guide here: https://developer.atlassian.com/platform/forge/queue-events-with-async-events-api-to-import-assets/
frenchie
1 comment