AnsweredAssumed Answered

How to control the frequency at which ACT_RU_JOB table is being polled

Question asked by rajeshiv on Feb 24, 2015
Latest reply on Oct 30, 2015 by sridhar_b

I have a work flow with an expiration timer set on it. I see that the activiti polls on the ACT_RU_JOB. I see that the below two queries are being executed every time it polls.

select *
where (RETRIES_ > 0) and (DUEDATE_ is null or DUEDATE_ < :1) and (LOCK_OWNER_ is null or LOCK_EXP_TIME_ < :2) and (RETRIES_ > 0)
SQL Details: 3mwmj7bu8yw9w

select *
where (TYPE_ = 'timer') and (DUEDATE_ is not null) and (DUEDATE_ < :1) and (LOCK_OWNER_ is null or LOCK_EXP_TIME_ < :2) and (RETRIES_ > 0) order by DUEDATE_

However I have large number of records in those tables and because activiti is polling I see that the above two queries are executing thousand of times in a soan of 15 mins. This is causing about 80% of my CPU time. Is there a way to manage the time interval at which activiti will poll for these tabels? what do you suggest so that these queries are not executed that frequently ?

Your advise is highly appreciated .
Thanks in advance !!!