Hi guys,
We need to enable the jobExecutorActivate, because we want to use timers in our production diagram.
The thing is that we have a huge diagram running on a production environment. We dont found any information in the activiti user guide refering to the impact of enabling the jobExecutorActivate.
We are using Activiti-5.22.0
So we ask the experts about it. What's the impact of enabling the jobExecutorActivate ? performance only ?
Thanks in advance,
Best regards,
Mateo.
There are 2 flavors of job executors available - old jobExecutor and modern asyncExecutor. User guide recommends to use asyncExecutor, but for basic needs both can work. Do no try to enable both at the same time though, even on different machines connected to one DB.
Each executor tends to request DB for timer/async/retry jobs. Once jobs are found they are executed in several threads of executor engine environment application.
You have to have all libs, connections and environment bits to execute jobs properly. For example, there is no http request in async job, so if your java delegate somehow looks for http request, you'll be in trouble.
Once executor is enabled, you get job retry behaviour of activity engine. Simple process fails without retries, but async/timer continuation will cause multiple (3 by default) retries with set time intervals. You have to be ready for this.
It's also possible that timer execution will overlap with regular task continuation. You can avoid some "unexpected" issues if you think about this beforehand.
Performance can be an issue if you need hyperspeed of your processes. Each async step slows down the process - its state is saved to DB and then fetched back. Generally job execution "speed" depends on settings for executor timers/threads, something like defaultTimerJobAcquireWaitTimeInMillis, maxPoolSize, maxTimerJobsPerAcquisition, for asyncJobExecutor.
Kindly provide the steps to enable the same in Alfresco Service Process Licenced one
Ask for and offer help to other Alfresco Process Services and Activiti Users and members of the Alfresco team.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.