cancel
Showing results for 
Search instead for 
Did you mean: 

processEngineConfiguration - asyncFailedJobWaitTime

dbrauche
Champ in-the-making
Champ in-the-making
Hi All,  I have a process definition that contains a polling task.  The polling task has "activiti:async='true".    It is a custom java task that times out after 60 minutes.   However, the activiti-rest process engine keeps timing out the task after 5 minutes and restarting it on a new thread.  I have tried up'ing the asyncFailedJobWaitTime property in the processEngineConfiguration bean, but it does not seem to change the 5 minute timout.  Does anyone what property to set in what bean to up the 5 minute timeout?  Below is the bean configuration I am trying to us.  I know the activiti-rest process engine is using my bean definition because it is using the deploymentResources property to auto deploy my process definitions.  Any help that could be provided would be great…..


<blockcode>
        <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
                <property name="dataSource" ref="dataSource" />
                <property name="transactionManager" ref="transactionManager" />
                <property name="databaseSchemaUpdate" value="true" />
                <property name="mailServerHost" value="localhost" />
                <property name="mailServerPort" value="5025" />
                <property name="jobExecutorActivate" value="false" />
                <property name="asyncExecutorEnabled" value="true" />
                <property name="asyncExecutorActivate" value="true" />
                <property name="deploymentResources" value="classpath*:*.bpmn20.xml" />
                <property name="asyncFailedJobWaitTime" value="3610" />
        </bean>
</blockcode>
2 REPLIES 2

trademak
Star Contributor
Star Contributor
You can overwrite the default wait times by overwriting the async executor with your customised version with other default time values. The asyncFailedJobWaitTime is not the correct config property you are looking for.

Best regards,

dbrauche
Champ in-the-making
Champ in-the-making
Thanks that worked.