How to Schedule a Robot to Run Automatically Every 30 Minutes in UiPath Studio

Hi guys,

I would like to set up a robot in UiPath Studio that runs automatically every 30 minutes 24/7. Also, I want the robot to restart automatically if any errors occur during its execution.

How can I do that? Thank you very much!

Hi @boxli,

Use orchestrator trigger to achive thia

Select hourly and mention 30 mins

Refer below link for more information

Regards,
Arivu

Great! But how can the robot restart immediately if any errors occur during its execution?

Hi @boxli,

I hope you are using RE framework, in that all the exception is handled properly.

Refer more for below link

Regards,
Arivu

@boxli,

For running the bot every 30 minutes user Time trigger from the Orchestrator.

Use a queue for this. Add a queue item for every execution. Enable retry machanism on queue.

In case of any Execution fail that transaction so retry machanism will create a new queue item for immediate retry.

This will work with a bot developed with REFramework.

@boxli

Ideally for restart you cannot add a logic as such in orchestrator…

In the process use a try catch around all activities which would be the outer most try catch and in catch use start job activity so that when there is an error caught a new job can start

And for 30 mins run already you would have got the way using timw trigger

Cheers

1 Like

For scheduling every 30 minutes 24/7 →

Navigate

Tenant → Select Fodler where process is deployed → Triggers → Add a New Trigger

Setup based on the below screenshot for your process

How to restart the robot automatically if any errors occur during its execution.

There is no option in the trigger to restart a process automatically based on the status of the job execution. If the process is queue based - we have option within queue to set the retry count which will retry the transaction item if any error occur during the execution. Since you are scheduling for every 30 minutes - BOT will process every 30 minutes even if the job is not successful

@boxli Inside process you can add a try catch which will check if robot fails with sys exception then trigger the process in orchestrator with start job activity

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.