-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review and refactor RPC handlers to handle cancellation properly #832
Comments
@aryanjassal You'll need to take this over. There is existing work done in branch |
For handlers like Similarly, I don't think we can actually handle cancellation for |
Cancellation applies to async operations and not just streamed data. For the most part the streaming handlers are the biggest targets for handling cancellation. But anything that waits for locks or takes a little while to do a thing can be cancelled. For example, the |
Anything asynchronous can be cancelled. Streaming is orthogonal. |
I think the docs is lacking info about the key concepts in RPC. |
Specification
Some RPC handlers are preforming long running async tasks. In these cases they need to make use of the provided
ctx
and handle cancellation gracefully to prevent any resource leaks. A clear example of this is the vaults pull and clone handlers.So we need to review handlers and update the ones that need CTX handling applied.
Additional context
Tasks
The text was updated successfully, but these errors were encountered: