cancel
Showing results for 
Search instead for 
Did you mean: 

Effective way of configuring Schedulers between two processes

RaghavSapra1
Level 3
Hi, I am dealing with a case where we are having two process - Primary and Secondary. Primary process will add requests to queues and secondary process will pick the same and work on it. I am planning to schedule primary process on every 2 hours basis followed by secondary process. But I am worried about some scenarios- 1. What is the better approach - To create a dependency of secondary process on successful execution of primary process or creating two separate schedulers for each process? 2.In both the approaches what if our primary process fails? Should the bot wait for 2 hours for getting the batch of requests or can this be handled in any other way. 3. In case I am proceeding with the approach of creating two separate schedulers for each process, how to schedule the schedulers? For eg. If I am scheduling primary process at 2pm(Primary process takes approx. 1-2 mins ) then at what time difference should I schedule my secondary process.   Thanks, Raghav
4 REPLIES 4

John__Carter
Staff
Staff
I assume you want to use the same machine for both processes? If the Get Work process can run as a background process then you could consider running both processes in parallel, all day long. That consumes 2 licenses however.   Alternatively, maybe you could configure each process to stop itself after running for N minutes, eg Get Work is scheduled to start at 0900 and run every hour. The Do Work process is scheduled to start at 0905 and also run every hour. However Do Work is designed to stop after 58 minutes, eg 0958, shortly before the next session of Get Work. That would consume 1 license.

CarlottaPuglies
Level 2
Hi @John__Carter,   Can you please let me know what is ""Get Work"" process and ""Do Work"" process you mention? Is that an action or a VBO? Thank you in advance.

John__Carter
Staff
Staff
Hi Carlotta - I was just using generic names to describe Raghav's Primary and Secondary processes. As Raghav states: Primary process will add requests to queues and secondary process will pick the same and work on it. So Primary is the process that gets the work, and Secondary is the one that does the work.

MelissaSuarez_G
Level 6
You can create only one scheduled process with two task. The setup would be: * The scheduled process starts with Process #1. On complete run Process #2. On Exception, Abort. * You should have an exception handling in your second process. If it runs and there is no items in the queue because the Process 1 failed, then there should be a ""happy"" path to your end stage.