cancel
Showing results for 
Search instead for 
Did you mean: 

Wait Make BP Unresponsive

Anonymous
Not applicable
Hi guys,

Need some help here.

Am doing a restart on a machine, so I have to wait for a given amount of time, i.e 2 minutes or so in order to achieve the rest of the steps required for my process.

During this waiting time, BP becomes unresponsive, so in Task Manager the tool will have the status ==> Not Responding.

I don't want this, just because other processes can not run on the same system anymore, because BP freezes, the window becomes grey etc.

The same status I've achieved with a C# code i.e System.Threading.Thread.Sleep(5000);

Can someone please advise on this very simple topic?

How can I have a generic waiting period of time, without the freeze?

Thank you in advance!



------------------------------
Cohen
RPA Developer

Romania
------------------------------

------------------------------
Cohen
RPA Developer

Romania
------------------------------
5 REPLIES 5

John__Carter
Staff
Staff
Can you provide more explanation please?

Which machine is being restarted? 
Which part of BP become unresponsive? Resource PC or Client?
By 'other processes' do you mean BP processes or EXEs?
What is 'the same system'? An application or a machine?

------------------------------
John Carter
Professional Services
Blue Prism
------------------------------

Anonymous
Not applicable
hi John,

Put into a code stage this action and execute it ==>System.Threading.Thread.Sleep(420000);

Now wile BP freezes try to run other processes.

BP becomes unresponsive and it shouldn't be as the waiting stage is a normal behavioral. BP freezes during this 7 min wait and other processes can't work as BP becomes unresponsive.




------------------------------
Cohen
RPA Developer

Romania
------------------------------

Even though you created a thread, it's still running in the context of the code stage, so the code stage will not complete until that thread is done. At present there is no concept of multi-threading in BP.

------------------------------
John Carter
Professional Services
Blue Prism
------------------------------

Anonymous
Not applicable
yes, is working but is unresponsive, which is not acceptable.

I could make a workaround by using an async wait and with async wait is working very nice! 

Maybe you can improve the code and put async wait as default!

Cheers!

------------------------------
Cohen
RPA Developer

Romania
------------------------------

Agree Cohen.
We have made a 'Soft Sleep' in our VBO which is exactly an async wait like you said. Works nice - you can move BP UI around, and also open more processes in Studio, Look at control room etc etc- just don't try and "Set Next stage" to other stages or otherwise interrupt the diagram flow while waiting, or there'll be some errors!!

------------------------------
Anton Hosang
RPA Developer
Smart Automation Services
Europe/London
------------------------------