AnsweredAssumed Answered

Completing multi-instance task is very slow, takes hours to complete each task when multi-instance has 1000+ tasks

Question asked by on Apr 26, 2016
Latest reply on May 3, 2016 by
Hello, We have a workflow with a multi-instance task and the multi-instance task is having between 2000 to 4000 running tasks. When we try to complete one of the task when there are thousands of multi-instance tasks running, it is taking hours to complete.
We investigated a bit and it looks like activiti is getting the parent execution and checking all the tasks present on the parent execution, probably to determine whether it should go to the next stage.

We are using the below API call.


The same completes quickly for single instance tasks or when there are very few tasks for the multi-instance task.

Any help in resolving this is appreciated.