I haven't had to stop an M/R script, but a techniq...
# suitescript
s
I haven't had to stop an M/R script, but a technique that works for Scheduled scripts is to check a script parameter value periodically in your script and gracefully exit (in your code) based on that value
n
Yeah. I am gonna do this in all my future M/R and Schedule Script. Thanks!
However, I don't think that would have helped me in my case.
s
yeah, that's an insane amount of time for a search to execute!
n
The search load time is not that much - a few seconds only and the search has only one filter. I think it was probably something else.
s
oh, I assumed your getData stage was loading a search, and it took a very long time to complete that stage.
n
9 hours. Bite me!