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

REST Get delay between making calls as documents come in (not pagination or retry)

Ish
New Contributor III

Hello,

For the REST Get snap, thereโ€™s a feature to set a delay interval between Pagination and Retry calls, but what about just between regular calls as documents come in? All calls to REST can be rate limited, not just pagination calls. Do I have to create a sub-pipeline with a script delay to achieve this?

Thanks!

1 ACCEPTED SOLUTION

j_angelevski
Contributor III

Hi @Ish,

If you really need the delay between each REST call on each document input, then yes that has to be delayed with a Script snap, it doesnโ€™t have to in a sub-pipeline because you can pass the data through the Script snap.

View solution in original post

5 REPLIES 5

j_angelevski
Contributor III

Hi @Ish,

If you really need the delay between each REST call on each document input, then yes that has to be delayed with a Script snap, it doesnโ€™t have to in a sub-pipeline because you can pass the data through the Script snap.

Ish
New Contributor III

Thank you for the tip โ€“ Iโ€™ll implement it this way.

Ish
New Contributor III

Another thing to mention โ€“ sometimes REST APIs tell you how long you have to wait until you can make the next call. It would be great if the REST Get could be enhanced to not only allow setting a delay, but also the ability to use the results from the previous call to set how long the delay will be before the next one.

rgoerwit
New Contributor II

This is an ongoing point of pain, and many folks have requested the ability to loop in SL without resorting to deep recursion.

There are apparently technical barriers to this. But itโ€™s necessary. (Loop here would be: GET, examine response; if response says to wait, extract the wait time and pause, then go back to step one; otherwise, proceed.)