cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous tasks and handling exceptions

donovanmuller
Champ in-the-making
Champ in-the-making
Hi,

Could anyone shed some light on the questions raised in the following thread?
http://forums.activiti.org/en/viewtopic.php?f=6&t=3199

More specifically in my case, how do you replay the async task that threw the exception?

Thanks
4 REPLIES 4

frederikherema1
Star Contributor
Star Contributor
THe async stuff is handled by the job executor. So if it fails, it's executed again (retied) for, by default, 3 times. THis is configurable in the configuration.

donovanmuller
Champ in-the-making
Champ in-the-making
Can you manually retry (via API etc.) the task at a later time?  (after all three retries have failed the process seems to wait at the task that failed)

frederikherema1
Star Contributor
Star Contributor
Yes. Please check the javadocs of ManagementService, this exposes that functionality (executeJob(id)).

donovanmuller
Champ in-the-making
Champ in-the-making
Great, thanks so much.