Skip to content

[Pause] Allow the CLI to pause suspended invocations #4950

Open
tillrohrmann wants to merge 2 commits into
restatedev:mainfrom
tillrohrmann:cli-pause-suspended-invocation
Open

[Pause] Allow the CLI to pause suspended invocations #4950
tillrohrmann wants to merge 2 commits into
restatedev:mainfrom
tillrohrmann:cli-pause-suspended-invocation

Conversation

@tillrohrmann

Copy link
Copy Markdown
Contributor

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.

tillrohrmann and others added 2 commits June 17, 2026 00:11
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>
@tillrohrmann
tillrohrmann requested a review from muhamadazmy June 16, 2026 22:26

@muhamadazmy muhamadazmy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!


use crate::commands::invocations::{
DEFAULT_BATCH_INVOCATIONS_OPERATION_LIMIT, DEFAULT_BATCH_INVOCATIONS_OPERATION_PRINT_LIMIT,
create_query_filter,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants