restate
restate copied to clipboard
CLI command restate invocation cancel MyObject/myKey not working
The CLI does not execute the correct query when cancelling all invocations for a specific object key:
Verbose output:
2025-09-05T18:54:11.223013Z INFO restate_cli_util::context: Didn't load '.env' file
2025-09-05T18:54:11.223489Z INFO restate_cli::app: Using environment from /home/giselle/.config/restate/environment
2025-09-05T18:54:11.223528Z DEBUG cling: Running handler `run_cancel` of type `Cancel`
2025-09-05T18:54:11.223639Z DEBUG restate_cli::clients::admin_client: Sending request GET (http://localhost:9070/version)
2025-09-05T18:54:11.223728Z DEBUG reqwest::connect: starting new connection: http://localhost:9070/
2025-09-05T18:54:11.223892Z DEBUG hyper_util::client::legacy::connect::http: connecting to 127.0.0.1:9070
2025-09-05T18:54:11.224044Z DEBUG hyper_util::client::legacy::connect::http: connected to 127.0.0.1:9070
2025-09-05T18:54:11.224432Z DEBUG hyper_util::client::legacy::pool: pooling idle connection for ("http", localhost:9070)
2025-09-05T18:54:11.224449Z DEBUG restate_cli::clients::admin_client: Response from http://localhost:9070/version (200 OK)
2025-09-05T18:54:11.224461Z DEBUG restate_cli::clients::admin_client: Response from http://localhost:9070/version (200 OK)
2025-09-05T18:54:11.224493Z DEBUG restate_cli::clients::admin_client: {"version":"1.4.4","min_admin_api_version":1,"max_admin_api_version":2,"ingress_endpoint":"http://127.0.0.1:8080/"}
2025-09-05T18:54:11.224531Z DEBUG restate_cli::clients::datafusion_http_client: Sending request sql query with json output 'SELECT id, target, status FROM sys_invocation WHERE target LIKE 'Chat/session456' AND status != 'completed''
2025-09-05T18:54:11.224565Z DEBUG hyper_util::client::legacy::pool: reuse idle connection for ("http", localhost:9070)
2025-09-05T18:54:11.229105Z DEBUG hyper_util::client::legacy::pool: pooling idle connection for ("http", localhost:9070)
Error: No invocations found for query Chat/session456! Note that the cancel command only works on non-completed invocations. If you want to remove a completed invocation, consider using the purge command instead.
The query SELECT id, target, status FROM sys_invocation WHERE target LIKE 'Chat/session456' AND status != 'completed'' should use Chat/session456/%