<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Hello Davy,</p>
    <p>I am not an expert in this area, but the source code says that -
      for example - # of attempts is checked only when
      CommunicationException is handled.</p>
    <p><a moz-do-not-send="true"
href="https://github.com/Evolveum/midpoint/blob/293f8ab6c23c976a8a4d6765d5c9d9a11325b3d1/provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/errors/CommunicationExceptionHandler.java#L157-L171"
        class="moz-txt-link-freetext">https://github.com/Evolveum/midpoint/blob/293f8ab6c23c976a8a4d6765d5c9d9a11325b3d1/provisioning/provisioning-impl/src/main/java/com/evolveum/midpoint/provisioning/impl/shadows/errors/CommunicationExceptionHandler.java#L157-L171</a></p>
    <p>What was the reason of retrying in your case?</p>
    <p>Best regards,<br>
    </p>
    <pre class="moz-signature" cols="72">-- 
Pavol Mederly
Software developer
evolveum.com</pre>
    <div class="moz-cite-prefix">On 29/07/2022 14:35, Davy Priem via
      midPoint wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:31912F10-D697-4AD6-A032-AD19DD02E6F6@vives.be">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      Hi,
      <div class=""><br class="">
      </div>
      <div class="">I have an issue with pending operations. In my
        resource I’ve configured this according to
        <a
href="https://docs.evolveum.com/midpoint/reference/synchronization/consistency/"
          class="moz-txt-link-freetext" moz-do-not-send="true">
https://docs.evolveum.com/midpoint/reference/synchronization/consistency/</a>.
        I thought pending operations would be auto removed when the
        shadow refresh task runs, but they keep on retrying. Am I
        missing something?</div>
      <div class=""><br class="">
      </div>
      <div class=""><br class="">
      </div>
      <div class=""><br class="">
      </div>
      <div class="">My consistency configuration in the resource</div>
      <div class="">
        <pre style="background-color:#2b2b2b;color:#a9b7c6;font-family:'JetBrains Mono',monospace;font-size:9,8pt;" class=""><span style="color:#e8bf6a;" class=""><consistency>
</span><span style="color:#e8bf6a;" class="">    <pendingOperationRetentionPeriod></span>P3D<span style="color:#e8bf6a;" class=""></pendingOperationRetentionPeriod>
</span><span style="color:#e8bf6a;" class="">    <operationRetryPeriod></span>PT15M<span style="color:#e8bf6a;" class=""></operationRetryPeriod>
</span><span style="color:#e8bf6a;" class=""></consistency></span></pre>
        <div class=""><br class="">
        </div>
      </div>
      <div class="">Although I still see some operations keep on being
        retried. Eg snippet from shadow object in that resource:</div>
      <div class=""><br class="">
      </div>
      <div class=""><br class="">
      </div>
      <div class="">
        <div class="">    <pendingOperation id="15"></div>
        <div class="">        <type>retry</type></div>
        <div class="">        <delta></div>
        <div class="">           
          <t:changeType>add</t:changeType></div>
        <div class="">           
          <t:objectType>c:ShadowType</t:objectType></div>
        <div class="">            <t:objectToAdd
          xsi:type="c:ShadowType"></div>
        <div class="">               ….</div>
        <div class="">            </t:objectToAdd></div>
        <div class="">        </delta></div>
        <div class="">       
<requestTimestamp>2022-05-06T14:54:35.161+02:00</requestTimestamp></div>
        <div class="">       
<operationStartTimestamp>2022-05-06T14:54:35.161+02:00</operationStartTimestamp></div>
        <div class="">       
<lastAttemptTimestamp>2022-07-29T14:23:36.839+02:00</lastAttemptTimestamp></div>
        <div class="">       
          <executionStatus>executing</executionStatus></div>
        <div class="">       
          <resultStatus>in_progress</resultStatus></div>
        <div class="">       
          <attemptNumber>7947</attemptNumber></div>
        <div class="">    </pendingOperation></div>
        <div class="">
          <div dir="auto" style="caret-color: rgb(0, 0, 0); color:
            rgb(0, 0, 0); letter-spacing: normal; text-align: start;
            text-indent: 0px; text-transform: none; white-space: normal;
            word-spacing: 0px; -webkit-text-stroke-width: 0px;
            text-decoration: none; word-wrap: break-word;
            -webkit-nbsp-mode: space; line-break: after-white-space;"
            class="">
            <div dir="auto" style="caret-color: rgb(0, 0, 0); color:
              rgb(0, 0, 0); letter-spacing: normal; text-align: start;
              text-indent: 0px; text-transform: none; white-space:
              normal; word-spacing: 0px; -webkit-text-stroke-width: 0px;
              text-decoration: none; word-wrap: break-word;
              -webkit-nbsp-mode: space; line-break: after-white-space;"
              class="">
              <div dir="auto" style="caret-color: rgb(0, 0, 0); color:
                rgb(0, 0, 0); letter-spacing: normal; text-align: start;
                text-indent: 0px; text-transform: none; white-space:
                normal; word-spacing: 0px; -webkit-text-stroke-width:
                0px; text-decoration: none; word-wrap: break-word;
                -webkit-nbsp-mode: space; line-break:
                after-white-space;" class="">
                <div><br class="">
                  Davy Priem<br class="">
                  Hogeschool VIVES | Dienst studentenzaken, informatie
                  en technologie<br class="">
                </div>
              </div>
            </div>
          </div>
        </div>
        <br class="">
      </div>
      <br>
      <fieldset class="moz-mime-attachment-header"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
midPoint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a>
<a class="moz-txt-link-freetext" href="https://lists.evolveum.com/mailman/listinfo/midpoint">https://lists.evolveum.com/mailman/listinfo/midpoint</a>
</pre>
    </blockquote>
  </body>
</html>