How to schedule a process to start if the process instance already running has faulted?


#1

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”?


#2

@jeganc could you please check if below option for scheduling using orchestrator API suits your requirement:

  1. Use API to check the state of jobs.
    http request: GET “/odata/Jobs”
  2. If value of state is “Faulted” then,
    Schedule the job
    http request: POST “/odata/ProcessSchedules”

Link for reference:
https://orchestrator.uipath.com/v2017.1/reference#processschedules
https://orchestrator.uipath.com/v2018.1/reference#api-references
https://platform.uipath.com/swagger/ui/index#/