feat(agent): support canceling package broker operations - #1905
feat(agent): support canceling package broker operations#1905Vladyslav Nikonov (vnikonov-devolutions) wants to merge 1 commit into
Conversation
Adds a POST /v1/package-operations/cancel endpoint to the package broker. Canceling a running operation terminates the spawned package-manager process and reports the operation as Canceled; cancelation is idempotent and terminal operations report their final status. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Implementation notes:
|
Let maintainers know that an action is required on their side
|
Adds a
POST /v1/package-operations/cancelendpoint to the Devolutions Agent package broker. Clients can now cancel an in-flight package operation: the broker terminates the spawned package-manager process and reports the operation asCanceled. Cancelation is idempotent, and canceling an already-finished operation simply returns its final status. Unknown operations, or operations owned by another client, are reported as not found.This enables UniGetUI (and other broker clients) to give users a working cancel button for installs, updates, and uninstalls that run through the broker.
Depends on now-policy-api / now-policy-server-template 0.3 (cancel API,
Canceling/Canceledstatuses, API version 1.1).Note
Draft: the workspace
Cargo.tomltemporarily patchesnow-policy-apiandnow-policy-server-templateto a local path. These patches must be removed once the 0.3 crates are published to crates.io.