[midPoint] errorHandling controlFlow for tasks
Yakov Revyakin
yrevyakin at gmail.com
Thu Jan 12 12:00:29 CET 2023
At least for 4.4.3 it doesn't work this way. My task includes
<controlFlow>
<errorHandling>
<entry>
<situation>
<errorCategory>configuration</errorCategory>
<status>fatal_error</status>
</situation>
<reaction>
<retryLater>
<initialInterval>PT1M</initialInterval>
<nextInterval>PT1M</nextInterval>
<retryLimit>3</retryLimit>
</retryLater>
</reaction>
</entry>
</errorHandling>
</controlFlow>
But the task becomes suspended right after the first error. Status of the
task becomes "Fatal Error"
I have set enableExperimentalCode to true.
On Thu, 12 Jan 2023 at 10:24, Ivan Noris via midPoint <
midpoint at lists.evolveum.com> wrote:
> Hi Yakov,
>
> have you tried
>
> https://docs.evolveum.com/midpoint/reference/tasks/task-error-handling/#triggers-2
> example? Perhaps you are missing the errorCategory.
>
> Please see also the whole documentation page.
>
> As the feature is marked Experimental, you may have also hit some of its
> limits. I remember it worked according to the samples for Live sync task
> for sure.
>
> Best regards,
>
> Ivan
>
> On 11. 1. 2023 18:06, Yakov Revyakin via midPoint wrote:
> > Hi all,
> > It is not clear how to configure retry for a task.
> > I have a task which got fatal_error because of an incorrect accessKey
> > for an external resource. The task is suspended after the error.
> > I'd like to have another behavior - task must retry attempt to execute
> > after a minute.
> > 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?
> >
> > <activity>
> > .......
> > <controlFlow>
> > <errorHandling>
> > <entry>
> > <reaction>
> > <retryLater>
> > <initialInterval>PT1M</initialInterval>
> > <nextInterval>PT3M</nextInterval>
> > <retryLimit>3</retryLimit>
> > </retryLater>
> > </reaction>
> > </entry>
> > </errorHandling>
> > </controlFlow>
> > </activity>
> >
> > _______________________________________________
> > midPoint mailing list
> > midPoint at lists.evolveum.com
> > https://lists.evolveum.com/mailman/listinfo/midpoint
>
> --
> Ivan Noris
> Expert Identity Engineer
> evolveum.com
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20230112/603575d2/attachment.htm>
More information about the midPoint
mailing list