[Pause] Allow the CLI to pause suspended invocations #4950
Open
tillrohrmann wants to merge 2 commits into
Open
[Pause] Allow the CLI to pause suspended invocations #4950tillrohrmann wants to merge 2 commits into
tillrohrmann wants to merge 2 commits into
Conversation
Expand the `restate invocations pause` query filter from
`status = 'invoked'` to `status IN ('invoked', 'suspended')` so suspended
invocations are also selected, mirroring the resume command. The server
already supports this: vqueue invocations are paused, while non-vqueue
suspended invocations are reported as already paused (a no-op, HTTP 200).
Also reuse the shared `create_query_filter` helper instead of the
duplicated inline block, and document the behavior in the v1.7.0 release
notes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
The `query` argument doc comment uses a bulleted list of example targets, but clap's default doc-comment preprocessing collapses it into a single line. Annotate the field with `#[clap(verbatim_doc_comment)]` on all invocation subcommands (pause, resume, cancel, kill, purge, restart-as-new) so the examples render one per line in `--help`. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
muhamadazmy
approved these changes
Jun 17, 2026
|
|
||
| use crate::commands::invocations::{ | ||
| DEFAULT_BATCH_INVOCATIONS_OPERATION_LIMIT, DEFAULT_BATCH_INVOCATIONS_OPERATION_PRINT_LIMIT, | ||
| create_query_filter, |
This file contains hidden or 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
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.
Expand the
restate invocations pausequery filter fromstatus = 'invoked'tostatus IN ('invoked', 'suspended')so suspendedinvocations are also selected, mirroring the resume command. The server
already supports this: vqueue invocations are paused, while non-vqueue
suspended invocations are reported as already paused (a no-op, HTTP 200).
Also reuse the shared
create_query_filterhelper instead of theduplicated inline block, and document the behavior in the v1.7.0 release
notes.