<div dir="ltr"><div>Thank you Paul,</div><div><br></div><div>Some more info.</div> UI highlights for "Retry later" in the "Error handling section" that "Processing of the specified <b>account</b> should be retried later." <div>But my task is "Single bulk action task". There is no work with accounts.<div>So, the question - Is this option relevant to retry single bulk action tasks or not?</div><div>If not how to reach reliable behavior of recurrent single bulk action tasks?</div><div><br></div><div>For example, a task has a groovy script making some Java rest calls. Endpoint is not available and script raises an exception. The task gets suspended status. What is the best practice to be sure that after some time the task will continue its work? </div><div><br></div><div>Do I have to process exceptions with try/catch by myself or Midpoint is able to retry after even RuntimeException?</div><div>How to get retries after exception managed - suspend after N retries?</div><div><br></div></div><div>Thanks,</div><div>J</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 11 Jan 2023 at 23:51, Paul Engle <<a href="mailto:pengle@rice.edu">pengle@rice.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I don't know if it's required or what happens by default if it's left out, but you might need a <situation> element in there:<div><entry></div><div> <situation></div><div> <status>fatal_error</status></div><div> </situation></div><div>...<br></entry></div><div><br></div><div>At least, that's what I have on one of my 4.4 server tasks, and it seems to perform as expected. </div><div>Disclaimer: I just started playing with the new activity-based error handling yesterday, so I'm far from an expert.</div><div><br clear="all"><div><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div>-- </div><div>Paul Engle</div><div>IAM Architect</div><div>Identity & Access Management</div><div><a href="mailto:pengle@rice.edu" target="_blank">pengle@rice.edu</a> 713-348-4702</div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 11, 2023 at 11:07 AM Yakov Revyakin via midPoint <<a href="mailto:midpoint@lists.evolveum.com" target="_blank">midpoint@lists.evolveum.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi all,<br><div>It is not clear how to configure retry for a task.</div><div>I have a task which got fatal_error because of an incorrect accessKey for an external resource. The task is suspended after the error.</div><div>I'd like to have another behavior - task must retry attempt to execute after a minute.</div><div>I configured errorHandling in the activity section but still have the same result - the task is suspended after an error and there is any retry. What's wrong? </div><div><br></div><div> <activity><br></div><div> .......</div><div> <controlFlow><br> <errorHandling><br> <entry><br> <reaction><br> <retryLater><br> <initialInterval>PT1M</initialInterval><br> <nextInterval>PT3M</nextInterval><br> <retryLimit>3</retryLimit><br> </retryLater><br> </reaction><br> </entry><br> </errorHandling><br> </controlFlow><br> </activity><br></div></div>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com" target="_blank">midPoint@lists.evolveum.com</a><br>
<a href="https://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">https://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</blockquote></div>
</blockquote></div>