cancel_vdi_task
Cancel a running VDI pool task, like an image push, by previewing its impact first and then confirming to stop it.
Instructions
[WRITE] Cancel a running pool task (e.g. an in-progress image push).
A bare call reads the task and returns blast_radius (task type, state, progress) and cancels nothing; confirm=True cancels. A task whose type or state cannot be read is refused. Work already applied is not rolled back. Show blast_radius to the user and wait for their decision. Do not set confirm=True on your own because the user asked for this earlier: they have not seen the blast radius yet. Audited.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| target | No | Horizon target from config.yaml; omit to use the default. | |
| confirm | No | False (default) returns the blast radius and changes nothing. True cancels. | |
| pool_id | Yes | The desktop-pool id. | |
| task_id | Yes | The task id (from get_vdi_task_status). |