07-07-23 04:37 PM
If a process failed, I would like to run the process automatically on the same BOT programmatically. Is it possible to do this using RPA or Python? My program need to extract the recourse information where the resource state is idle and connection as "Yes Connected" . But when I checked the Resource table, I am getting the resource state but not the connection information. How can I extract the BOT connected to the application server or not?
10-07-23 01:28 PM
Hi Gyanendra,
Not sure if you have tried or not, but you can use Scheduler to do the same for the mentioned requirement.
Suppose your process name is P1 and machine name is VDI1, create the schedule in the below mentioned way:
Schedule Tasks | On Complete | On Abort |
Task 1 | Stop | Task 2 |
Task 2 | Stop | Abort |
Both Task 1 and Task 2 can be configured to run P1 on VDI1.
11-07-23 07:07 AM
Hi G,
You can build a 'Driver' process that runs the process you want to run and checks the results of it. If it failed, the Driver process will run your process again. If it did not fail, the Driver process ends.
------------------------------
Happy coding!
---------------
Paul
Sweden
By all means, do not mark this as the 'Best answer'!
------------------------------
11-07-23 09:57 AM
Oooh I'm stealing that one for my projects @PvD_SE !
11-07-23 01:44 PM
Patent pending... 🙂
------------------------------
Happy coding!
---------------
Paul
Sweden
By all means, do not mark this as the 'Best answer'!
------------------------------
12-07-23 03:20 PM
This is the approach we have taken:
Remember to (always) untick "Fail fast on any errors"
13-07-23 05:23 AM
Multiple processes are running in the BOT like for 10 min in a sequence. If a process scheduled now and failed, I can't restart it immediately as it may overlap the schedule time of the other process. Hence, I am getting the failed process and corresponding BOT from BP database. then checking if the bot is idle, connected and no process are in queue, then only, I have to restart the failed process in the same BOT. But not finding which table contains the scheduled time and connected information.