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.
@huojia Welcome to the Atlassian community
Can you explain in more detail what you are doing and why it is taking so long? Usually you have the application handle timeouts and resend the api call but timeouts should be the exception and not the standard.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.