# nodus agentrun cancel-task

> Cancel one subtask while preserving completed siblings

Source: https://www.nodus-compute.ai/docs/reference/cli/nodus_agentrun_cancel-task/
Build revision: 4ebfc6023eeed1bd55d9969af1612182a7b0c7ff

## nodus agentrun cancel-task

Cancel one subtask while preserving completed siblings

### Synopsis

Cancel one subtask in its parent’s shared sandbox. Read agentrun team first for allowed actions. The receipt confirms the request was saved, not executed. It applies between operations, so in-flight work may finish first. Shared files are retained; cancellation does not undo file changes. Redirect preserves the task’s dependencies and file access.

```plaintext
nodus agentrun cancel-task RUN TASK [flags]
```

### Examples

```plaintext
  nodus agentrun cancel-task triage task-1-2 --key request-1
```

### Options

```plaintext
  -h, --help            help for cancel-task
      --key string      Stable request key; reuse it for an unchanged retry
  -o, --output string   Output format: json prints the saved request receipt
```

### Options inherited from parent commands

```plaintext
      --context string   Context from the config file to use
      --org string       Organization (selects the context for that org)
  -p, --project string   Project to work in
  -v, --verbose          Log each API request (never credentials)
```

### SEE ALSO

* [nodus agentrun](https://www.nodus-compute.ai/docs/reference/cli/nodus_agentrun/) - Follow a team, manage a task, or continue a run
