cancel
Showing results for 
Search instead for 
Did you mean: 

Service task with longer execution time (e.g. 120 mins)

mljolje
Champ in-the-making
Champ in-the-making
We would like to extend 5 min timeout as well number of retries for service task.
We have changed in activiti-engine.jar following fields of JobExecutor:

  protected int maxJobsPerAcquisition = 0; // no retries
  protected int lockTimeInMillis = 20 * 60 * 1000; // 20 min for testing

but behaviour of activiti seems stayed as before (after 5 min retry is triggered anyway), besides we have seen that act_ru_job table contains job with lock_exp_time_ set to 20 mins as it is in code.

Do you know why is this happening?
How to increase 5 mins to like 120 mins and set retries to 0?

Thank you.

BR
Marije
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Please don't double-post the same (or a very related) question. We try to answer all questions if we can…