If I want to chain 3 MR scripts one after another is it good practice to call the seconed MR script from summary function of the first one? (the seconed script need to be execute just after the first is finished)
k
karlenigma
09/21/2022, 6:40 AM
It’s not good practice to do it but the way you have suggested is the way I have done it in the past.
d
David Na
09/21/2022, 7:09 AM
Is there any other way to do that?
k
karlenigma
09/21/2022, 7:10 AM
Not really unless you have something else that controls the starting and stopping of the scripts like a custom record with a UE .
b
BS
09/21/2022, 11:07 AM
Besides that, when something goes wrong at the map stage. What are you going to do since the summary gets always called? Keep that in mind 😉
k
karlenigma
09/21/2022, 11:08 AM
Yep handle errors and if no error then run your next one 😂
s
scottvonduhn
09/21/2022, 12:23 PM
As long as it’s always okay for the second or third script to run, this is the way to do it. If there’s any instance where you might need to prevent the next step from happening, or would need to re-run the current M/R, then you’d need to handle that and proceed accordingly.