Is there a best practice to delay/retry a http cal...
# suitescript
d
Is there a best practice to delay/retry a http call to an external API in a map reduce script? Or do I just use a datetime.now + 5 second in a while loop?
b
use a delay service like https://postman-echo.com/delay/10
d
Thanks. I was thinking about that too, not postman echo specifically but something similar.
Something else I'm looking at is to reschedule the MapReduce script for a little bit later
b
its usually easier to reschedule a scheduled script
map/reduce scripts really want to processs all their records before ending