Hello,
I have a custom function that I call from a Map reduce script. This function loads a search at runtime and processes its results. The search id is passed as a parameter to map reduce.
For a specific search, Map/Reduce errors out and completes prematurely, specifically at .runPaged, ( or .each or at .getRange(), tried all 3).
Just to make sure, I ran the same function with same parameters in a scheduled script, and the scheduled script processes it just fine.
I run the Map Reduce with a different parameter (different search id), and it processes just fine, which makes me think that slow running complex searches aren't handled gracefully within the Map Reduce script context.
Has anyone faced this or have any idea about this?
Best,
Riaz G