I read from this topic that the time allowed to process jira app event is no more than 25 seconds.
And the only suggestion is to split the work into small pieces, the serve will auto process these works parallelly.
But What if a single request already exceeds 25 seconds, what should i do? (Because during event processing, i need to make requests to external servers to fetch certain data and using the response to do something.)
Here are the possible approaches I think can be implemented:
Register an Endpoint in the Jira app: register an endpoint in my Jira app. When making requests to the external server, include the relevant endpoint information in the payload. After the server processes the request, it can send a request to the endpoint, and the endpoint can handle the logic for responding.
Submit the Tasks to Atlassian Servers: Submit the tasks that require longer execution time to the Atlassian servers for processing. This allows the tasks to be executed on the server side, bypassing the 25-second timeout limitation.