cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti runs async task twice

garhing_
Champ in-the-making
Champ in-the-making
Using Activiti 5.17 and the async job executor, Activiti sometimes runs an asynchronous job twice. The job does not appear to have failed the first time it ran. The two executions happen sequentially and in different threads.
3 REPLIES 3

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi garhing_,

Did the job lock expire?

Regards
Martin

garhing_
Champ in-the-making
Champ in-the-making
Hi Martin,

5 minutes seems to be the default job lock timeout (we are not setting the timeout in configuration) but the reruns are happening within 5 minutes. In one case, the rerun happens 38 seconds after the initial run begins. In another case, the rerun occurs 25 seconds after the initial run. Both reruns are started roughly 15 seconds after the initial runs finished.

Regards,
Simon

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi Simon,

Could you try to reproduce the issue in the jUnit test?
https://forums.activiti.org/content/sticky-how-write-unit-test

regards
Martin