I am trying to schedule a process to run every 2 hours. Sometimes the process might fail. In that case, it would be less efficient if the scheduler has to wait the remainder of the time to run the next scheduled iteration of the process. Is there a way to setup a schedule that picks up the process if the status of the last iteration says “Faulted”?
@jeganc could you please check if below option for scheduling using orchestrator API suits your requirement:
- Use API to check the state of jobs.
http request: GET “/odata/Jobs”
- If value of state is “Faulted” then,
Schedule the job
http request: POST “/odata/ProcessSchedules”