AnsweredAssumed Answered

Job retry defaults

Question asked by mmaker1234 on Aug 24, 2012
Latest reply on Aug 20, 2014 by mamtag
Hello Activiti developers,

As some other users here I do not agree to the default Job Executor behavior to retry a failed job three times. As I remember the plans for an earlier Activti version included (a task) to provide an engine setting for the number of job retries but this not happened until the current version (5.10).

Now I would like to rebuild the Activiti engine with value of DEFAULT_RETRIES in org.activiti.engine.impl.persistence.entity.JobEntity set to 1. Unfortunately, when I try to set the value to 2 or 1, I meet the following error during the sure-fire tests:

testJobCommandsWith2Exceptions(org.activiti.engine.test.jobexecutor.JobExecutorCmdExceptionTest)  Time elapsed: 0.109 sec  <<< FAILURE!
java.lang.AssertionError: DB NOT CLEAN:
  ACT_RU_JOB: 1 record(s)   ACT_GE_BYTEARRAY: 1 record(s)
Fortunately this is the only failing test (in contrast to 5.9 where many other tests failed after the change).

Please fix the JobExecutorCmdExceptionTest to allow setting of DEFAULT_RETRIES to values lower than 3.