Join Slack
Powered by
Is there a best practice to delay/retry a http cal...
# suitescript
d
dbaghdanov
07/28/2022, 5:29 PM
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
battk
07/29/2022, 12:29 AM
use a delay service like
https://postman-echo.com/delay/10
d
dbaghdanov
07/29/2022, 12:32 AM
Thanks. I was thinking about that too, not postman echo specifically but something similar.
dbaghdanov
07/29/2022, 12:32 AM
Something else I'm looking at is to reschedule the MapReduce script for a little bit later
b
battk
07/29/2022, 12:44 AM
its usually easier to reschedule a scheduled script
battk
07/29/2022, 12:44 AM
map/reduce scripts really want to processs all their records before ending
3
Views
Open in Slack
Previous
Next