<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Async job timeout in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/async-job-timeout/m-p/221720#M174850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem from my point of view is that async job execution starts transaction. This transaction is finished when the service work is done (20 mins). It does not make sense to keep transaction open for 20 mins.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2016 08:07:20 GMT</pubDate>
    <dc:creator>martin_grofcik</dc:creator>
    <dc:date>2016-03-07T08:07:20Z</dc:date>
    <item>
      <title>Async job timeout</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-job-timeout/m-p/221716#M174846</link>
      <description>Hello,I've got a problem. There is a Service Task which takes some 20 minutes to execute (some pretty heavy SQLs). When AsyncJobExecutor is enabled in engine.properties (in this case I'm using the default Explorer webapp), it doesn't finish the job and restarts it. I've googled it and found that I c</description>
      <pubDate>Wed, 02 Mar 2016 15:48:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-job-timeout/m-p/221716#M174846</guid>
      <dc:creator>lossril</dc:creator>
      <dc:date>2016-03-02T15:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Async job timeout</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-job-timeout/m-p/221717#M174847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using spring configuration? If yes, you can get autowired ProcessEngineConfiguration and call getJobExecutor() on it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Mar 2016 22:53:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-job-timeout/m-p/221717#M174847</guid>
      <dc:creator>sankalpn</dc:creator>
      <dc:date>2016-03-02T22:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Async job timeout</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-job-timeout/m-p/221718#M174848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;20 mins is a long time. I would prefer to just trigger task to execute outside of the process engine and finish the process instance. When the task is finished, it could send message/signal start event to start new process and handle results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Mar 2016 07:57:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-job-timeout/m-p/221718#M174848</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-03-03T07:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Async job timeout</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-job-timeout/m-p/221719#M174849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, I've succeeded in configuring the timeout through ActivitiEngineConfiguration class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AsyncExecutor asyncExecutor = new DefaultAsyncJobExecutor();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;asyncExecutor.setAsyncJobLockTimeInMillis(20 * 60 * 1000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;asyncExecutor.setDefaultTimerJobAcquireWaitTimeInMillis(20 * 60 * 1000);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;processEngineConfiguration.setAsyncExecutor(asyncExecutor);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Works fine. Martin, why would you advise against this practice? Will it affect engine in a negative way? Do you suppose to create some servlet, which will be accessible through REST API and return call results as signal variables, so service task will just send a REST request and won't wait for the response?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 07:58:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-job-timeout/m-p/221719#M174849</guid>
      <dc:creator>lossril</dc:creator>
      <dc:date>2016-03-07T07:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Async job timeout</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/async-job-timeout/m-p/221720#M174850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the problem from my point of view is that async job execution starts transaction. This transaction is finished when the service work is done (20 mins). It does not make sense to keep transaction open for 20 mins.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 08:07:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/async-job-timeout/m-p/221720#M174850</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-03-07T08:07:20Z</dc:date>
    </item>
  </channel>
</rss>

