cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Retry with exponential backoff

jason1
Deputy Chef I
Deputy Chef I

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!

10 REPLIES 10

jakob-maynard
Deputy Chef I
Deputy Chef I

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.

Thanks Jakob. We are faced with the same challenge as Jason. Could you please elaborate on the sleeper utility?

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.

jason1
Deputy Chef I
Deputy Chef I

Jakob Maynard Thank you. Is this invoked within the on error step with a set number of retries?