cancel
Showing results for 
Search instead for 
Did you mean: 

Action, setExecuteAsynchronously Timeout?

vbfischer
Champ in-the-making
Champ in-the-making
I'm currently executing an action asynchronously. The action is a very long running one, that can take an hour or more. At some point, the action appears to block… When run in isolation (i.e. outside of Alfresco), the action will complete successfully.

I couldn't see any reference to a timeout, but is it possible that this is what's happening? Its being executed from a JSF Bean (BaseDialogBean). Is it possible that this bean is getting GC'd and leaving the thread orphaned?

Thanks
1 REPLY 1

mrogers
Star Contributor
Star Contributor
No there's no timeout.   And running code will not not be touched by the GC. 

The most likely problem with a long running transaction is some sort of transaction deadlock …

Also if you have lots of long async actions consider increasing the size of the action thread pool or run your actions on their
own pool so they dont affect the other actions.