> This page is for version v1.3 (default).
> For other versions, use one of these documentation indexes:
> - v1.3 (default): https://docs.twelvelabs.io/v1.3/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.twelvelabs.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.twelvelabs.io/_mcp/server.

## Cancel asynchronous analysis tasks

You can now cancel an asynchronous analysis task in your account while it is queued, pending, or processing.

Tasks created as part of a batch cannot be canceled individually; cancel the batch instead.

Add handling for the `canceled` status in the code that branches on task status. The other values remain `queued`, `pending`, `processing`, `ready`, and `failed`.

Canceling a task also produces a new `analyze.task.canceled` webhook notification. If your webhook endpoint is subscribed to all events, it now receives this notification. Update your handler to recognize `analyze.task.canceled`, or to ignore event types it does not support.

**`Python SDK`**

```sh Python SDK
pip install --upgrade twelvelabs
```

**`Node.js SDK`**

```sh Node.js SDK
npm install twelvelabs-js@latest
```

For details, see the [Cancel an async analysis task](/v1.3/api-reference/analyze-videos/cancel-an-async-analysis-task) page in the API Reference section, or the SDK reference for [Python](/v1.3/sdk-reference/python/analyze-videos/async-analysis#cancel-an-async-analysis-task) and [Node.js](/v1.3/sdk-reference/node-js/analyze-videos/async-analysis#cancel-an-async-analysis-task). For the payload and delivery details of the notification, see the [Notification schema](/v1.3/docs/advanced/webhooks/response-schema) page.