Hi jbarrez,
I have reduced the frequency at which these queries are executed by tweaking the setting in activiti.cfg.xml.
I un-commented the below in activity.cfg.xml to use the DefaultJobExecutor.
Also, added the property "waitTimeInMillis" to the bean and set its value to 10min.
With the above change, I am able to control the frequency of the query execution, however, I see the Retry is not functioning correctly.
I have a timer with delay of 5min between each Retry. After the first execution, it retries next 2 executions immediately and doesn't wait for the timer.
However, when I comment back the below code, it works fine. It does wait between each Retry. Please let me know if I need to do it differently.
Thanks in advance.
//Comment the block
<property name="jobExecutor">
<bean class="org.activiti.engine.impl.jobexecutor.DefaultJobExecutor">
<property name="queueSize" value="3"/>
<property name="corePoolSize" value="3"/>
<property name="maxPoolSize" value="10"/>
<property name="maxJobsPerAcquisition" value="30"/>
<property name="waitTimeInMillis" value="600000"/>
</bean>
</property>