<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic RE: Continue process after restarting resource? in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Continue-process-after-restarting-resource/m-p/78694#M30693</link>
    <description>There is no easy way to achieve this Johanna, as you know the process runs on the RR, so stopping the RR means stopping the session. So the first problem is how to start another session after the RR has restarted. The second (easier) problem is how to have that next session pick up where the first one finished.&lt;BR /&gt;&lt;BR /&gt;It might be possible to use the scheduler's 'On Exception' task, but care is needed to avoid creating an infinite loop where a process fails and the task restarts again and again.&lt;BR /&gt;&lt;BR /&gt;Another option is to have the first session make a delayed command line call just before the process ends. The command line call will keep 'counting down' after the process has ended. Here you can see an example with a 5 second timeout.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18663.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18814i0DDCB938C2B8779F/image-size/large?v=v2&amp;amp;px=999" role="button" title="18663.png" alt="18663.png" /&gt;&lt;/span&gt;&lt;BR /&gt;This means if you use a timeout long enough to allow the RR to restart, then the command to run the next session should succeed. You could probably create a single command that does everything, eg:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;Wait for current session to end (eg 5s)&lt;/LI&gt;
&lt;LI&gt;Restart RR&lt;/LI&gt;
&lt;LI&gt;Wait for RR to connect and become available (eg 30s)&lt;/LI&gt;
&lt;LI&gt;Start process again&lt;/LI&gt;
&lt;/UL&gt;
Using the command line means you'll need to think about authentication, security and permissions, but if you create a user with minimal permissions then you can reduce the risks. And assuming you use a work queue then the first session can control the state of the last case it works on before initiating the restart. the next session should just be able to pick the next case and carry on.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 07 Mar 2022 10:06:00 GMT</pubDate>
    <dc:creator>John__Carter</dc:creator>
    <dc:date>2022-03-07T10:06:00Z</dc:date>
    <item>
      <title>Continue process after restarting resource?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Continue-process-after-restarting-resource/m-p/78693#M30692</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;We are experiencing problems in scheduled processes due to the browser extension occasionally not working. We have a process that checks if the extension is working, and if not will restart BP and the runtime resource.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My question is, can we run this process as part of the error recovery in a scheduled process, so that if the problem is the extension not working it will run the process to restart BP and the resource, and then have it pick up where it left off?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johanna Westlund&lt;BR /&gt;RPA developer&lt;BR /&gt;SpareBank 1  Østfold Akershus&lt;BR /&gt;/Norway&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Mar 2022 08:02:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Continue-process-after-restarting-resource/m-p/78693#M30692</guid>
      <dc:creator>johwes</dc:creator>
      <dc:date>2022-03-07T08:02:00Z</dc:date>
    </item>
    <item>
      <title>RE: Continue process after restarting resource?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Continue-process-after-restarting-resource/m-p/78694#M30693</link>
      <description>There is no easy way to achieve this Johanna, as you know the process runs on the RR, so stopping the RR means stopping the session. So the first problem is how to start another session after the RR has restarted. The second (easier) problem is how to have that next session pick up where the first one finished.&lt;BR /&gt;&lt;BR /&gt;It might be possible to use the scheduler's 'On Exception' task, but care is needed to avoid creating an infinite loop where a process fails and the task restarts again and again.&lt;BR /&gt;&lt;BR /&gt;Another option is to have the first session make a delayed command line call just before the process ends. The command line call will keep 'counting down' after the process has ended. Here you can see an example with a 5 second timeout.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="18663.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/18814i0DDCB938C2B8779F/image-size/large?v=v2&amp;amp;px=999" role="button" title="18663.png" alt="18663.png" /&gt;&lt;/span&gt;&lt;BR /&gt;This means if you use a timeout long enough to allow the RR to restart, then the command to run the next session should succeed. You could probably create a single command that does everything, eg:&lt;BR /&gt;
&lt;UL&gt;
&lt;LI&gt;Wait for current session to end (eg 5s)&lt;/LI&gt;
&lt;LI&gt;Restart RR&lt;/LI&gt;
&lt;LI&gt;Wait for RR to connect and become available (eg 30s)&lt;/LI&gt;
&lt;LI&gt;Start process again&lt;/LI&gt;
&lt;/UL&gt;
Using the command line means you'll need to think about authentication, security and permissions, but if you create a user with minimal permissions then you can reduce the risks. And assuming you use a work queue then the first session can control the state of the last case it works on before initiating the restart. the next session should just be able to pick the next case and carry on.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Mar 2022 10:06:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Continue-process-after-restarting-resource/m-p/78694#M30693</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2022-03-07T10:06:00Z</dc:date>
    </item>
    <item>
      <title>RE: Continue process after restarting resource?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Continue-process-after-restarting-resource/m-p/78695#M30694</link>
      <description>Here's an example of a six step command: wait 3s, terminate the RR, wait 5s, restart the RR, wait 10s, restart the process&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;timeout /t 3 &amp;amp;taskkill /im automate.exe /f /t &amp;amp;timeout /t 5 &amp;amp;"C:\Program Files\Blue Prism Limited\Blue Prism Automate\Automate.exe" /resourcepc /public /port 8101 &amp;amp;timeout /t 10 &amp;amp;"C:\Program Files\Blue Prism Limited\Blue Prism Automate\AutomateC.exe" /run "My Process" /resource "RR123456" /user "My User" MyPassword&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;John Carter&lt;BR /&gt;Professional Services&lt;BR /&gt;Blue Prism&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Mar 2022 14:33:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Continue-process-after-restarting-resource/m-p/78695#M30694</guid>
      <dc:creator>John__Carter</dc:creator>
      <dc:date>2022-03-07T14:33:00Z</dc:date>
    </item>
    <item>
      <title>RE: Continue process after restarting resource?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Continue-process-after-restarting-resource/m-p/78696#M30695</link>
      <description>Thank you, I will definitely look into this!&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Johanna Westlund&lt;BR /&gt;RPA developer&lt;BR /&gt;SpareBank 1  Østfold Akershus&lt;BR /&gt;/Norway&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Mar 2022 14:51:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Continue-process-after-restarting-resource/m-p/78696#M30695</guid>
      <dc:creator>johwes</dc:creator>
      <dc:date>2022-03-07T14:51:00Z</dc:date>
    </item>
  </channel>
</rss>

