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
Also, note that these are normal promises (not restate promises) that are coming from wrapping fetch so you can also use the regular node js promise combinators. For example here is how to add a timeout for a promise:
constwithTimeout=(millis,promise)=>{lettimeoutPid;consttimeout=newPromise((resolve,reject)=>timeoutPid=setTimeout(()=>reject(`Timed out after ${millis} ms.`),millis));returnPromise.race([promise,timeout]).finally(()=>{if(timeoutPid){clearTimeout(timeoutPid);}});};
Currently there does not seem to be a way of configuring a timeout on invoking a handler from the restate-sdk-clients package
E.g.
In a restate-service you can do this with
.orTimeout()
on the endSo these requests appear to just hang forever (if there is a temporary issue on the handler for example) until the invocation resolves
The text was updated successfully, but these errors were encountered: