There is a provision to run more than one Pega Robotics runtime to execute automations, i.e. when you use two different studio instances, you can debug/run two different automations at the same time on same desktop and there are no issues, however when I try to use batch file to run deployed solutions (two at the same time) I get an error saying two run times cannot be possible.
My question is, how is it different from what Pega Robotics studio use to run the runtimes?
How can we run two different automations at the same time in two different runtimes on same desktop? Or is there a way you can attach the second automation to the same run time that is running already?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
Currently, it is not supported to run two instances of Runtime concurrently. The setting that allows this in the RuntimeConfig.xml is intended for use in certain Citrix environments and is not supported in most cases. It is recommended that you only run one instance at a time.
If you want to run one solution after another has finished, you could have the first solution start the second one (using a bat file that pauses to allow the first to terminate first and then starts the second).
You could use something like the following. If you have already executed the TerminateRuntime method in your automation, then I would skip the ShutDownRuntime.exe as it is essentially the same thing. The sleeps are to allow the processes to finish before starting the next one.
CD "Program Files (x86)\OpenSpan\OpenSpan Runtime"
TASKKILL /IM OpenSpan.Runtime.exe /F
EXEC OpenSpan.Runtime.exe project="path to your project.OpenSpan"