Hi folks,
I have a little bit strange behaviour of job executor. I will try to explain what happens.
I’m using Spring Boot 1.4.0, MySQL 5.7.21 and embedded Camunda Engine. In early morning hours I have a load in MySQL database from external source. That load is heavy and it’s importing a lot of data and it lasts for 2-3 hours.
After the load is finished my daily workflow process is started by executing query to fetch all candidates for which process need to be started (it’s a service task). Sometimes it happens that query lasts longer then default execution time and incident occur (after few retries). After the incident occurred, I’m doing a retry in Camunda Cockpit and the token waits in service task. In ACT_RU_JOB table I’m seeing the job that is locked with time in future (which is ok I guess). But it happens that engine delays that job for few times (I was waiting almost for two hours for job to be picked and executed).
Anyone has an idea?