Hello Everyone,
I have created two schedulars through PMs that executes one by one. But sometimes the first schedular runs longer and in that case I want my second schedular to wait until the first schedular finishes.
Can anyone please help me out how to acheive this?
Thank you!
Discussion posts and replies are publicly visible
You can use Process messaging to trigger the second process from first, but my question is if you want second process to start just after the finish of first process then why not just plug second process using Start process smart service in the first process itself?
because the schedulars can be more than ten and in that case the PM will keep running even if the other schedular is yet to run.
You can use Start Process smart service in the end of 1st scheduler. That way, when the first one finishes, then it will trigger the next one on the available engine, keeping the load balanced and ensuring that your process doesn't stay active forever.
If you have multiple such schedulers, then you can build a loop in the process.
Rahul009 said:that executes one by one
But you said that they run one by one, and in that case there is no need for the upcoming processes to be a scheduler process (?). Just get all these processes and form a loop around them with Start Process to execute them one by one.
Thank you , Every schedular has a schedule to run. and in any case if their schedule overlaps each other then they need to execute sequentially and not in parallel.
Then I think my first suggestion of using Process Messaging to pass the message to upcoming Scheduler will work, in the Start timer event add a condition along with timer to check if the previous process is completed.
Hi , ,
The schedulars will run only when the conditions mentioned become true and in case if condition becomes true on week ends then we need to stack them and run on monday sequentially(First in First run order). Any suggestions to implement this?
I don't see a problem with this too. You can implement what I said and then using XOR and timer nodes, you can re-direct the flow to wherever you like and use timer to start the process as and when needed,
Thanks Harshit,
Could you please explain a bit more about it?
Hi ,
Some of the schedulars are which falls on weekends will be pushed to the weekdays where some of other schedules are already planned at the same time. So in that case the weekend schedulars should run first before the other schedulars planned at the same time.