Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

[RPC-Spec-V2] Cancel ongoing operations #14639

Closed
Tracked by #14636
lexnv opened this issue Jul 25, 2023 · 1 comment · Fixed by #14755
Closed
Tracked by #14636

[RPC-Spec-V2] Cancel ongoing operations #14639

lexnv opened this issue Jul 25, 2023 · 1 comment · Fixed by #14755
Assignees
Labels
J0-enhancement An additional feature request.

Comments

@lexnv
Copy link
Contributor

lexnv commented Jul 25, 2023

Cancel any ongoing operation identified by the unique operation ID:

  • chainHead_stopBody, chainHead_stopCall and chainHead_stopStorage are removed
  • the chainHead_stopOperation will terminate any operation that is pending a result
  • it is possible that an ongoing operation has already produced the result before the user calls this method

// @paritytech/subxt-team

@lexnv lexnv added the J0-enhancement An additional feature request. label Jul 25, 2023
@lexnv lexnv self-assigned this Jul 25, 2023
@tomaka
Copy link
Contributor

tomaka commented Jul 26, 2023

For what it's worth I don't think you need to implement this properly in a full node, given that you send back the results immediately. The only exception is when a chainHead_storage is in a waiting-for-continue state.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J0-enhancement An additional feature request.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants