If the "restart" option is enabled when cancelling/killing, at the end of the invocation the state machine will simply reset the in flight invocation status, removing the pinned deployment id and resetting the journal (except the first entry, that is the input entry)
This commit exposes the feature both in Admin API and in CLI
Fix #895. Depends on https://github.com/restatedev/restate/pull/2335
The fundamental commit where semantics are implements is this one: https://github.com/restatedev/restate/commit/0edc593d5117a16aba429722c96149e3c3bd1e32
Essentially the behavior is the following:
This commit exposes the feature both in Admin API and in CLI