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?
Kris Wood
05/01/2020, 1:50 AM
Looks like setTimeout does not work in map stage...
b
battk
05/01/2020, 1:55 AM
There is no good wait
battk
05/01/2020, 1:55 AM
Common workaround is to make a loop that loops until a certain amount of time passes