-
Notifications
You must be signed in to change notification settings - Fork 49
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
Extend delete invocation REST endpoint to support different termination modes #998
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
slinkydeveloper
approved these changes
Dec 18, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, please update the documentation at https://docs.restate.dev/services/invocation/#cancel-an-invocation
Will do via restatedev/documentation#233 |
tillrohrmann
force-pushed
the
issues/996
branch
2 times, most recently
from
December 18, 2023 16:39
a8475d0
to
6500bc7
Compare
This commit extends the JournalTable::get_journal method to also return the journal index for each journal entry.
This commit introduces a new TerminationFlavor::Cancel which will gracefully terminate an invocation. The way it works is that only leaf operations are being terminated with a CANCELED_INVOCATION_ERROR. Leaf operations are all completable journal entries except for calls and inboxed invocations. For pending calls in a journal, a cancellation will propagate the cancellation to these calls. This commit adds support for canceling inboxed, invoked, suspended and virtual invocations. This fixes restatedev#986 and restatedev#943.
This commit fixes an asymmetry in handling completions for virtual invocations.
This commit enriches the information that is sent from the cancel REST endpoint to the server. Concretely, it now passes the InvocationTermination struct which allows to set how an invocation gets terminated.
…on modes This commit extends the existing delete invocation REST endpoint to accept an additional query parameter mode which allows to select between cancel and kill. The default is cancel. This fixes restatedev#996.
tillrohrmann
force-pushed
the
issues/996
branch
from
December 18, 2023 18:32
6500bc7
to
a19a7c9
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR is based on #995.
This commit extends the existing delete invocation REST endpoint to accept an
additional query parameter mode which allows to select between cancel and kill.
The default is cancel.
This fixes #996.