any solutions to stop a long running map reduce
# suitescript
s
any solutions to stop a long running map reduce
w
Undeploy or delete deployments. Don't remember what it took. It will not spawn new map/reduce instances when the governance runs out of the currently running ones.
s
TY!
undeploying worked!
👍 1
s
you can also create an intentional kill switch using a script param. A simple boolean 'abort' flag would do - you check for that periodically in your code (e.g. start of
map()
) and if set, return without processing.
👍 2
s
good point especially for scripts that are meant to process large datasets and tend to run for a long time
but do the parameters get reloaded during the MR run? (I would've assumed that they get stored in memory)