I've got a map reduce sending updates to an extern...
# suitescript
k
I've got a map reduce sending updates to an external API. Unfortunately the API chokes when too many requests are sent in too short a time span. What's the best way to get a map reduce script to wait a bit at the end of each request?
Looks like setTimeout does not work in map stage...
b
There is no good wait
Common workaround is to make a loop that loops until a certain amount of time passes
Generally vulnerable to execution count limits
k
yeah that's what I ended up with
Untitled