โ01-28-2021 04:03 PM
Hi, is there a simple way to build in exponential backoff when hit with a rate limit API error? The error handling step allows for retries, but there doesn't seem to be a way to set custom wait intervals in between tries.
Perhaps something that can be implemented with the new Wait step, but curious how others have tackled this.
Thanks!
โ01-28-2021 04:12 PM
We've implemented a sleeper utility, so when we hit rate limit errors, we sychronously call the util with an x minute wait, then when it returns, retry the initial call.
โ01-28-2021 04:14 PM
Thanks Jakob. We are faced with the same challenge as Jason. Could you please elaborate on the sleeper utility?
โ01-28-2021 04:18 PM
Yeah, so it's a very simple recipe that takes in an integer, then uses a Execute Ruby Code step with ruby's sleep function. Workato has it's own Wait function on the Scheduler app, but we've noticed for longer wait times, it tends to stall and won't return for much longer than the initial time.
โ01-28-2021 04:19 PM
Jakob Maynard Thank you. Is this invoked within the on error step with a set number of retries?