Question
Avanade
US
Last activity: 9 Mar 2020 11:31 EDT
Restarting Runtime Instance
Is it possible to have a runtime instance "restart itself" in case a certain number of errors occur? We have a couple of automations that occasionally run into issues that can only be fixed by manually restarting the runtime instance, so i am curious if this can be done automatically.
Thanks!
Jon
Is this RPA or RDA (unattended or attended)? Are you using the RPA Service with Robot Manager? If so, you can simply call TerminateRuntime from within the bot code (before that you should also set one of the adapters to AdapterNotReady so that work is not sent over). If the bot is scheduled to be active, then the RPA service would simply start it back up again. That is the easiest way.
Another way would be to launch a batch file with commands that would terminate and then launch Runtime after a set amount of time. I could create an example if you need one, but that would have to be later in the week.