Delay in job execution with async="true";

cancel
Showing results for 
Search instead for 
Did you mean: 
pandusg
Member II

Delay in job execution with async="true";

I'm using activiti 6.0.0 when I'm trying to call service task with async="true" .. It's taking long time(5 minutes) to start the service task. This is happening only in case of application running in multiple instances scenario's (Load balancer).

<serviceTask id="PostProfileTask" name="PostProfileTask" activiti:class="UpdateProfileApi" activiti:async="true"  activiti:inheritVariables="true">
<documentation>Post Profile</documentation>
</serviceTask>

Then I tried with exclusive = "false". It's same taking long time to start the job execution.

<serviceTask id="PostProfileTask" name="PostProfileTask" activiti:class="UpdateSubscriberProfileApi" activiti:async="true" activiti:exclusive="false" activiti:inheritVariables="true">
<documentation>Post Profile</documentation>
</serviceTask>

 Any suggestions or advice on this?