Question
Sykes
CO
Last activity: 30 Jul 2019 22:07 EDT
Schedule RPA hourly basis
I need to shedule an automation to run multiple times throw the day, 1 hour bettween iterations if the process whas completed and 15 minutes if someting goes wrong. all this only between the shedule configured in 'RpaSchedule.json' file.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Pegasystems Inc.
US
Well. First, are you using Robot Manager? and what version of Pega Robotics are you using?
If you are just using the Pega RPA Scheduler (and no Robot Manager), the RpaSchedule.json can only schedule once per day.
If you are using Robot Manager 6.x and Pega Robotics 8.0.2019+, then you can schedule multiple times a day in Robot Manager.
Sykes
CO
I'm using Pega Robotics Studio v Proprietary information hidden.0, and no I'm not using robot manager, now I figure out some way to run the task multiple times as spected using 'System.Timers.Timer' (screenshot attached) but in the final execution of the day the task always fail and the bot never log off, once I restart the machine the next day the automation work as spected but the runtime never close and the user never log off
Pegasystems Inc.
US
I probably wouldn't use the System.Timers.Timer class. The System.Windows.Forms.Timer is available in the Toolbox already.
The user would only log off if the end of the schedule has happened (from the RPASchedule.json). And in conjunction, you should use the WaitForAutomations property in the RuntimeConfig.xml, to make sure that Runtime doesn't shut down in the middle of an automation.
Sykes
CO
The automation fail when happend outside the schedule defined in 'RPASchedule.json', I think is because the Timer still are sending signals and the runtime asume that the automation still working in something.
The runtime log is attached, I only keep the lines between 10 minutes at the end of the schedule (because the full file is about 170 MB)
Pegasystems Inc.
US
Well. The shutdown notification is being sent from the scheduler. It might be the timer that is preventing Runtime from stopping. Since the automation is triggered every second... it might stop the automation thread from unwinding and shutting down.
- 10:00:05.735 | External shutdown was set. Notifying Runtime to shut down
- 10:00:05.735 | RuntimeLoader.Shutdown() Invoking onto MainForm thread.
Perhaps add a condition to stop.. If you know that you're ending at 10pm every day... just use a DateTimeUtil and stop the timer at 10pm.
Sykes
CO
I did not want to use an internal condition for that but I'll try it, sadly I will not have result until monday, so, please dont close the thread for inactivity
Sykes
CO
Ok I have news,
I change the 'WorkBucle' automation (the screenshot attached before) to this one
And 'CheckEndWorkTime' is like this
But still the session never log off, i getting this from the RuntimeLog.txt:
Ok I have news,
I change the 'WorkBucle' automation (the screenshot attached before) to this one
And 'CheckEndWorkTime' is like this
But still the session never log off, i getting this from the RuntimeLog.txt:
Info | 09:45:34.580 AM | 6 | MTA | Runtime Application | | | External shutdown was set. Notifying Runtime to shut down
Info | 09:45:34.580 AM | 6 | MTA | Runtime Application | | | RuntimeLoader.Shutdown() Invoking onto MainForm thread.
Info | 09:49:52.240 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 101, 18, -2135425023 )
Warning | 09:49:52.240 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 257 because disposed or stopping
Info | 09:49:52.240 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 101, 18, -2118647807 )
Warning | 09:49:52.240 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 257 because disposed or stopping
Info | 09:49:52.303 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 101, 17, -2137194495 )
Warning | 09:49:52.303 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 257 because disposed or stopping
Info | 09:49:52.303 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 101, 17, -2120417279 )
Warning | 09:49:52.303 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 257 because disposed or stopping
Info | 09:49:52.303 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 101, 16, -2136342527 )
Warning | 09:49:52.303 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 257 because disposed or stopping
Info | 09:49:52.303 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 101, 16, -2135556095 )
Warning | 09:49:52.303 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 257 because disposed or stopping
Info | 09:49:52.303 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 86, 0, 0 )
Warning | 09:49:52.303 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 134 because disposed or stopping
Info | 09:49:52.303 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 6, 0, 0 )
Warning | 09:49:52.303 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 6 because disposed or stopping
Info | 09:49:52.303 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 8, 0, 0 )
Warning | 09:49:52.303 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 8 because disposed or stopping
Info | 09:49:52.303 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 281, 0, -1073741809 )
Warning | 09:49:52.303 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 641 because disposed or stopping
Info | 09:49:52.303 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 282, 1, 0 )
Warning | 09:49:52.303 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 642 because disposed or stopping
Info | 09:49:53.415 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 31A, 5308419, 1 )
Warning | 09:49:53.415 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 794 because disposed or stopping
Info | 09:49:53.603 AM | 40 | STA | | | | WindowsProcess.WndProc( 132210, 31A, 5308419, 1 )
Warning | 09:49:53.603 AM | 40 | STA | Windows Adapter | | -2586442 | Adapter IEXPLORE.EXE, 132210 not processing message 794 because disposed or stopping
Info | 09:49:53.603 AM | 39 | STA | | | | WindowsProcess.WndProc( 132076, 31A, 5308419, 1 )
Warning | 09:49:53.603 AM | 39 | STA | Windows Adapter | | -18579470 | Adapter IEXPLORE.EXE, 132076 not processing message 794 because disposed or stopping
Info | 09:49:53.603 AM | 24 | STA | | | | WindowsProcess.WndProc( 66402, 31A, 5308419, 1 )
Warning | 09:49:53.603 AM | 24 | STA | Windows Adapter | | -774306 | Adapter iexplore.exe, 66402 not processing message 794 because disposed or stopping
Info | 09:49:55.233 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 46, 0, 236053612 )
Warning | 09:49:55.233 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 70 because disposed or stopping
Info | 09:49:55.248 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 86, 1, 0 )
Warning | 09:49:55.248 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 134 because disposed or stopping
Info | 09:49:55.248 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 6, 1, 0 )
Warning | 09:49:55.248 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 6 because disposed or stopping
Info | 09:49:55.248 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 281, 1, -1073741809 )
Warning | 09:49:55.248 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 641 because disposed or stopping
Info | 09:49:55.248 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 282, 2, 0 )
Warning | 09:49:55.248 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 642 because disposed or stopping
Info | 09:49:55.248 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 7, 0, 0 )
Warning | 09:49:55.248 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 7 because disposed or stopping
Info | 09:49:55.342 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 87, 0, 0 )
Warning | 09:49:55.342 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 135 because disposed or stopping
Info | 09:49:55.342 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 87, 0, 0 )
Warning | 09:49:55.342 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 135 because disposed or stopping
Info | 09:49:55.342 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 100, 175, 19922945 )
Warning | 09:49:55.342 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 256 because disposed or stopping
Info | 09:49:55.342 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 101, 175, -1053818879 )
Warning | 09:49:55.342 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 257 because disposed or stopping
Info | 09:49:56.314 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, C051, 1, 236048880 )
Warning | 09:49:56.314 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 49233 because disposed or stopping
Info | 09:49:56.314 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 288, 6, 236048880 )
Warning | 09:49:56.314 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 648 because disposed or stopping
Info | 09:49:57.300 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 87, 0, 0 )
Warning | 09:49:57.300 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 135 because disposed or stopping
Info | 09:49:57.300 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 87, 0, 0 )
Warning | 09:49:57.300 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 135 because disposed or stopping
Info | 09:49:57.300 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 100, 175, 19922945 )
Warning | 09:49:57.300 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 256 because disposed or stopping
Info | 09:49:57.316 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 101, 175, -1053818879 )
Warning | 09:49:57.316 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 257 because disposed or stopping
Info | 09:50:01.997 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 86, 0, 0 )
Warning | 09:50:01.997 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 134 because disposed or stopping
Info | 09:50:01.997 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 6, 0, 0 )
Warning | 09:50:01.997 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 6 because disposed or stopping
Info | 09:50:01.997 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 8, 0, 0 )
Warning | 09:50:01.997 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 8 because disposed or stopping
Info | 09:50:01.997 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 281, 0, -1073741809 )
Warning | 09:50:01.997 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 641 because disposed or stopping
Info | 09:50:02.003 AM | 45 | STA | | | | WindowsProcess.WndProc( 262982, 282, 1, 0 )
Warning | 09:50:02.003 AM | 45 | STA | Windows Adapter | | -23692278 | Adapter HotelBedsExportDB.exe, 262982 not processing message 642 because disposed or stopping
I see the lines that mention 'Adapter HotelBedsExportDB.exe...' and 'Adapter IEXPLORE.EXE...' make reference to the application I automating, and those applications are closed to this time.
Pegasystems Inc.
US
It looks like you're shutting down runtime prior to the automations finishing. Try restructuring your automation to only call shutdown after all other tasks have completed. Also, it might not be worth shutting down Runtime until end of day and letting it just sit in an idle state when it's not being used.
Sykes
CO
Any help with this?