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
I have an endpoint that does several resource intensive calculations in sequence (they depend on each other).
Before starting the last calculation I would like to check the status of the request (ie in particular- has the client timed out) since it’s an expensive step I only want to to when I need to (there is a client to return the response to).
I can’t seem to find any way in rocket to acces this information / cancel a request handler based on it.
Am I missing something or is there no such functionality?
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
-
Hi,
I have an endpoint that does several resource intensive calculations in sequence (they depend on each other).
Before starting the last calculation I would like to check the status of the request (ie in particular- has the client timed out) since it’s an expensive step I only want to to when I need to (there is a client to return the response to).
I can’t seem to find any way in rocket to acces this information / cancel a request handler based on it.
Am I missing something or is there no such functionality?
Beta Was this translation helpful? Give feedback.
All reactions