cancel
Showing results for 
Search instead for 
Did you mean: 

Exception handling: number of retries for async executions

gunnar1
Champ in-the-making
Champ in-the-making
When setting a service task to asynchronous it looks like in case of an Exception the internal job handler will retry 3 times (?) before giving up.

  • How do I configure the number of retries for async services?

  • What if I do not want to retry at all?

  • What if I want the retry not immediately - but manually triggered later on?
Any ideas? Thanks in advance!
Gunnar
4 REPLIES 4

p4w3l
Champ in-the-making
Champ in-the-making
@Team: How can we configure job execution retry count ?

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
In the configuration?

p4w3l
Champ in-the-making
Champ in-the-making
Yes, in configuration if possible if not - somehow else.

bernd_ruecker
Champ in-the-making
Champ in-the-making
Actually in Activiti itself that is pretty much hard coded to 3. It should be possible to change that by you with a static property:

  JobEntity.DEFAULT_RETRIES = 17;

But it is actually not that nice. In camunda fox we introduced configuration on the level of activities / flow nodes: https://app.camunda.com/confluence/display/foxUserGuide/Custom+Job+Retry+Strategy. I think that is more flexible. So that is always the proof: You can extend the behavior yourself 😉

Cheers
Bernd