Advanced Agent/job scheduler -Retry mechanism in case of API errors
Greetings. I have a requirement to retry the logic in case third party API returns errors which are transient. The activity has to be run nightly so i want to configure a Job scheduler. As this will not be part of any process flow, this just inserts records to a reference table. Regarding error handling there is a requirement to retry for 3 times with a wait of 60 secs per each retry. One way to do is to configure the wait within the activity but just wondering if there are any best alternatives to this approach?
Assuming that error handling is done only through activity handled in Job scheduler and no process flow is involved, using a wait method in activity will serve the same purpose as using Wait shape or Defining SLA for delaying before retrying the logic in flow, and as long as you have appropriate checks for wait to be executed only till 3 attempts , it seems to be a good approach.