is there a way to check if a Map/Reduce script is currently running? Use case is a user-event script will trigger the execution of the map/reduce script but it has to know if the script is already running, I am getting theMAP_REDUCE_ALREADY_RUNNING error
n
Nikola Gavric
02/19/2020, 7:58 AM
Check out the N/task API, specifically: task.MapReduceScriptTaskStatus
👍 1
e
eliseobeltran
02/19/2020, 8:41 AM
thanks
👍 1
d
darrenhillconsulting
02/19/2020, 2:39 PM
Another approach is putting the task.submit() inside a try/catch, and if that error raises, simply ignore it (or log it).
👍 2
m
michoel
02/20/2020, 12:44 AM
You can also run saved searches on running Map Reduce instances (