You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say I have a function that imports data from a 3rd party service API. That API is rate-limited. When I hit the rate limit, I need to wait until a certain reset time. Right now I don't see a straight forward way to stop executing the function and instruct Inngest to retry after a given delay or at/after a given time.
Am I missing something?
Ideally, I would like to throw a custom Inngest*Error error with a retryAt property that Inngest would consume and retry the same function accordingly. Ideally I would also like to pass arguments in case I want to resume the function at a certain state instead of it starting from scratch, e.g. a cursor to continue a pagination endpoint at the point where I hit the rate limit.
What would you recommend as a workaround for the time being?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Say I have a function that imports data from a 3rd party service API. That API is rate-limited. When I hit the rate limit, I need to wait until a certain reset time. Right now I don't see a straight forward way to stop executing the function and instruct Inngest to retry after a given delay or at/after a given time.
Am I missing something?
Ideally, I would like to throw a custom
Inngest*Error
error with aretryAt
property that Inngest would consume and retry the same function accordingly. Ideally I would also like to pass arguments in case I want to resume the function at a certain state instead of it starting from scratch, e.g. a cursor to continue a pagination endpoint at the point where I hit the rate limit.What would you recommend as a workaround for the time being?
Beta Was this translation helpful? Give feedback.
All reactions