Task queue - Application will not start up after Java heap error on microflow with Task Queue

0
Hello all, I am currently facing a very complex task that can only be tested in the Acceptance environment. The functionality involves retrieving a huge list and performing numerous task queue processes within a microflow. Since I am still developing the functionality, I expecting the application to break at sometimes. However, what I am not in favor of is when the application runs out of Java heap, it restarts but fails to terminate TaskQueue processes that are not finished (still in status running). As a result, it keeps running out of Java heap due to repeated attempts to process those tasks. Is there any possibility to terminate a TaskQueue task in a more elegant manner, rather than searching for a specific TaskQueue object and deleting it in a Before shutdown microflow? What currently i need to do, delete TaskQueue process in Modeler and redeploy application. Application is running on-premises. Best regards, Slavko
asked
1 answers
0

Hi Slavoko,

 

If your problem is hit because of memory usage keep increasing due to Task queue keep trying(in success case does not have memory problem), then maybe you can set up error handling for microflow, in term of validation and prevent run time error, so your microflow will end properly.

 

this documentation should help you:

https://docs.mendix.com/refguide/error-handling-in-microflows/#222-error-handling-which-ends-with-an-end-event

answered