cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous and retry

sdesbure
Champ in-the-making
Champ in-the-making
Hello,
I've got an asynchronous service task (actually, the whole process is asynchronous) which may last more than 5 minutes (but less than 6…).
The issue is after 5 minutes of running, the task is retried and then I've got the 2 of them that mess the process.

How can I put the retry wait time to a longer value (I've checked the code but I have only 10s on two wait times so I assume it's not the right ones)?

2 REPLIES 2

vasile_dirla
Star Contributor
Star Contributor
Hello,
have a look here: http://activiti.org/userguide/index.html#advanced_parseHandlers
18.1.4. Async executor configuration
"asyncJobLockTimeInMillis
The time in milliseconds that an asynchronous job is locked before being retried again. The Activiti Engine considers the asynchronous job to have failed after this period of time and will retry."

If I understood well your case, this could help.

sdesbure
Champ in-the-making
Champ in-the-making
Hello Vasile,
thanks for the answer (I was looking on the process engine and not on the asyncprocess properties). It seems to be exactly what I want!

sylvain