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 a frontend (zerorpc-node) communicating with a backend (zerorpc-python) that needs to:
a) be able to send requests to the backend [standard zerorpc call]
b) be able to run multiple backend processes simultaneously [followed the architecture in https://github.com/0rpc/zerorpc-node/issues/96) c) be able to cancel a backend process at will [not sure how to do this with current architecture]
Any guidance would be much appreciated.
The text was updated successfully, but these errors were encountered:
gevent doesn't support cancelling. There is a cancel method on the AsyncResult, but it is a no-op.
Are timeout not reasonable for your use case? The default timeout is 30s. When the timeout expires, zeropc Server will inject a timeout exception into the coroutine running your handler (note, same happens after missing heartbeats). Any gevent function you call in the coroutine becomes a point were an exception can be injected, effectively cancelling your handler.
is there any way to cancel a zerorpc call?
I have a frontend (zerorpc-node) communicating with a backend (zerorpc-python) that needs to:
a) be able to send requests to the backend [standard zerorpc call]
b) be able to run multiple backend processes simultaneously [followed the architecture in https://github.com/0rpc/zerorpc-node/issues/96)
c) be able to cancel a backend process at will [not sure how to do this with current architecture]
Any guidance would be much appreciated.
The text was updated successfully, but these errors were encountered: