Posted: 14 Jun 2018 2:04 EDT Last activity: 6 Feb 2019 17:45 EST
Pega Automation Scheduling Service doesn't work as expected
We have built a RPA BOT and need to deploy to an unattended server. BOT should run on daily basis at a specific time in the day. Server on which BOT needs to be deployed will be unattended (locked).
We've explored different options including Windows Task Scheduler, Windows Service and Pega Scheduler.
BOT has functionality to interact with different applications (Ex: Launch excel and perform tasks). A batch file is created to launch and Runtime and trigger BOT execution.
Issue with Task scheduler is that batch file runs and BOT works as expected when "Run only when user is logged in" option is selected. But fails to launch runtime when "Run whether user is logged on or not" option is selected (Pls refer snapshot1.png).
Issue with Widows service is that batch file is launched, openspan.runtime.exe can be seen in task manager, but fails to run BOT
The Robotic Processing Automation Scheduling is definitely the way to go. I'd recommend opening a Support Request after turning on the Scheduler logs and checking where the failure is happening. You can enable the logs based on the information in the attached document. Make sure to attach the logging with the SR when you open it.
Windows login credentials are configured in credmgr.exe.
Here is the latest update. Scheduler is able to trigger the automation/BOT in specified time. But the behavior is not as expected.
Here are our queries
Duration time is set for 900 minutes (15 hrs), and automation takes 1 min to complete. Start time is @8AM. So scheduler should continuously restart runtime (trigger BOT) from 8AM till 11PM. But this is not happening
BOT should trigger BOT twice in a day at 10AM & 7PM. This cannot be achieved using Pega scheduler and can only be done using Task scheduler. Send keys fail to work when BOT tries to run in locked state. Task scheduler won't unlock machine when it triggers the BOT
Yes. Pega Scheduler can only schedule Runtime to Start and Stop once in a 24 hour period. The start time is when the Scheduler will attempt to unlock the machine and start the OpenSpan.Runtime.exe process. At the end of the duration period, the Scheduler will call OpenSpan.Runtime.exe to shutdown and the machine will be locked again.