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
This could be problematic if the action takes a long time and we would like to control it via deadline/timeout
The only possible option seems to be kill the whole plugin server unless I missed something.
Would it be possible to leverage packages such as https://github.com/keegancsmith/rpc which propose similar clients to rpc.client but which support context.Context. This way we could use the context to cancel calls or to add a timeout protection
The text was updated successfully, but these errors were encountered:
acabarbaye
changed the title
Support rpc call cancellation
Support rpc call cancellation/control via context.Context
Sep 28, 2023
Currently actions executed in the plugin cannot be cancelled as the RPC client
Call
function does not support the use of context.This could be problematic if the action takes a long time and we would like to control it via deadline/timeout
The only possible option seems to be kill the whole plugin server unless I missed something.
Would it be possible to leverage packages such as https://github.com/keegancsmith/rpc which propose similar clients to rpc.client but which support
context.Context
. This way we could use the context to cancel calls or to add a timeout protectionThe text was updated successfully, but these errors were encountered: