<?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: Change number of retries and interval in job fail retry in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/change-number-of-retries-and-interval-in-job-fail-retry/m-p/166486#M120076</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If we overried JobExecutor and&amp;nbsp; SetJobRetriesCmd, it will effect for all service tasks of our model, right? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I want each service task has a different number of retries and interval, can I do it? how if yes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I want to retry until task success (don't limit the number of retry), can I do it? how if yes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jun 2016 10:56:59 GMT</pubDate>
    <dc:creator>minhquankq</dc:creator>
    <dc:date>2016-06-14T10:56:59Z</dc:date>
    <item>
      <title>Change number of retries and interval in job fail retry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/change-number-of-retries-and-interval-in-job-fail-retry/m-p/166484#M120074</link>
      <description>Hi all,Im trying to change the default number of retries and the invertal between the retries of a failing job but I could not have success. My attempt is based on the what was suggested in the following links: - http://forums.activiti.org/content/job-retry-defaults- https://jira.codehaus.org/browse</description>
      <pubDate>Wed, 16 Oct 2013 17:45:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/change-number-of-retries-and-interval-in-job-fail-retry/m-p/166484#M120074</guid>
      <dc:creator>heldergr</dc:creator>
      <dc:date>2013-10-16T17:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Change number of retries and interval in job fail retry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/change-number-of-retries-and-interval-in-job-fail-retry/m-p/166485#M120075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; The first is what is the correct strategy to change the interval between retries? Which method in Job (or another class) should I use? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The JobExecutor has these properties:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; protected int maxJobsPerAcquisition = 3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; protected int waitTimeInMillis = 5 * 1000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; protected String lockOwner = UUID.randomUUID().toString();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; protected int lockTimeInMillis = 5 * 60 * 1000;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The&amp;nbsp; job executor is pluggable, you can inject a subclass of your own. I guess the waitTimeInMillis applies for time between retries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; The second question is how can I change the number of retries to 5, for example? I know I can set the retries in the job, but I should&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; know when the command is executing the first time to set the remaining number of retries. It looks a very basic question, but I could not &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt; have an anwser yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's pretty tricky as it is not configurable out of the box. However, there is the SetJobRetriesCmd you could use to fix it quickly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 14:16:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/change-number-of-retries-and-interval-in-job-fail-retry/m-p/166485#M120075</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-10-21T14:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Change number of retries and interval in job fail retry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/change-number-of-retries-and-interval-in-job-fail-retry/m-p/166486#M120076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If we overried JobExecutor and&amp;nbsp; SetJobRetriesCmd, it will effect for all service tasks of our model, right? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I want each service task has a different number of retries and interval, can I do it? how if yes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I want to retry until task success (don't limit the number of retry), can I do it? how if yes?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2016 10:56:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/change-number-of-retries-and-interval-in-job-fail-retry/m-p/166486#M120076</guid>
      <dc:creator>minhquankq</dc:creator>
      <dc:date>2016-06-14T10:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change number of retries and interval in job fail retry</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/change-number-of-retries-and-interval-in-job-fail-retry/m-p/166487#M120077</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;BLOCKQUOTE class="jive-quote"&gt;If I want each service task has a different number of retries and interval, can I do it? how if yes?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Yes it is feasible. You have to just extend process model and to service task optional &lt;/SPAN&gt;&lt;CODE&gt;extensionElement&lt;/CODE&gt;&lt;SPAN&gt; (there are many examples in the activiti code). After that you have to change JobExecutor behavior to take into account your &lt;/SPAN&gt;&lt;CODE&gt;extensionElement&lt;/CODE&gt;&lt;SPAN&gt; when setting job retries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If I want to retry until task success (don't limit the number of retry), can I do it? how if yes?&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;Yes, your custom logic in the job executor has to take care of that.&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>Wed, 15 Jun 2016 08:47:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/change-number-of-retries-and-interval-in-job-fail-retry/m-p/166487#M120077</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-06-15T08:47:58Z</dc:date>
    </item>
  </channel>
</rss>

